Compare commits

...

10 commits

Author SHA1 Message Date
Chris Cochrun bd920ad274 adding OVMFFull 2025-05-23 10:26:31 -05:00
Chris Cochrun bd603a3a65 updating 2025-05-08 14:28:58 -05:00
Chris Cochrun 5976121dad fixing up eww for better things 2025-05-08 14:27:39 -05:00
Chris Cochrun 9a9e1cef44 more transparent windows 2025-05-05 13:52:43 -05:00
Chris Cochrun df37a2b214 adding gpu to eww 2025-05-05 13:05:43 -05:00
Chris Cochrun 27ffac56bc add gpu utilization script 2025-05-05 12:49:03 -05:00
Chris Cochrun 370aa9615d ahh 2025-05-01 15:32:56 -05:00
Chris Cochrun 8576abd055 gah 2025-05-01 09:32:19 -05:00
Chris Cochrun 598fa7528d idk 2025-05-01 09:29:26 -05:00
Chris Cochrun 79053fa847 tweaks for eww 2025-04-29 14:57:27 -05:00
16 changed files with 237 additions and 171 deletions

View file

@ -113,9 +113,9 @@ tooltip label {
background-color: $base0D; background-color: $base0D;
} }
.right_modules { .sysmodules {
// padding-bottom: 2px; // padding-bottom: 2px;
// padding-right: 5px; padding-right: 5px;
} }
.separ { .separ {
@ -201,7 +201,9 @@ tooltip label {
// Icon Size // Icon Size
.iconbat, .iconmem, .iconcpu .iconvol .iconbright { .iconbat, .iconmem, .iconcpu .iconvol .iconbright {
font-size: 12; // font-size: 12;
// padding-top: 2px;
// padding-left: 8px;
} }
// Memory // Memory
@ -215,6 +217,8 @@ tooltip label {
.iconmem { .iconmem {
color: $base0A; color: $base0A;
padding-top: 2px; padding-top: 2px;
padding-left: 8px;
// padding-right: 8px;
} }
.mem_label { .mem_label {
color: $base0A; color: $base0A;
@ -233,11 +237,14 @@ tooltip label {
color: $base0E; color: $base0E;
// margin: 2px 10px 0px 8px; // margin: 2px 10px 0px 8px;
padding-top: 3px; padding-top: 3px;
padding-left: 10px;
padding-right: 8px;
} }
.bat_label { .bat_label {
color: $base0E; color: $base0E;
padding-top: 3px; padding-top: 3px;
padding-right: 20px;
// padding-left: 3px; // padding-left: 3px;
} }
@ -247,6 +254,8 @@ tooltip label {
color: $base0D; color: $base0D;
// margin: 2px 10px 0px 8px; // margin: 2px 10px 0px 8px;
padding-top: 3px; padding-top: 3px;
padding-left: 10px;
padding-right: 8px;
// padding-right: 12px; // padding-right: 12px;
} }
@ -255,11 +264,27 @@ tooltip label {
padding-top: 3px; padding-top: 3px;
} }
.icongpu {
color: $base0E;
// margin: 2px 10px 0px 8px;
padding-top: 3px;
padding-left: 10px;
padding-right: 8px;
// padding-right: 12px;
}
.gpu_label {
color: $base0E;
padding-top: 3px;
}
// Volume // Volume
.iconvol { .iconvol {
color: $base08; color: $base08;
// margin: 2px 10px 0px 8px; // margin: 2px 10px 0px 8px;
padding-top: 3px; padding-top: 3px;
padding-left: 10px;
padding-right: 8px;
// padding-right: 4px; // padding-right: 4px;
} }
@ -272,6 +297,8 @@ tooltip label {
.iconbright { .iconbright {
color: $base09; color: $base09;
padding-top: 3px; padding-top: 3px;
padding-left: 10px;
padding-right: 8px;
// padding-right: 8px; // padding-right: 8px;
} }
.bright_icon { .bright_icon {
@ -288,10 +315,12 @@ tooltip label {
} }
.icondisk { .icondisk {
font-size: 18; // font-size: 18;
color: $base09; color: $base09;
// margin: 3px 5px 0px 3px; // margin: 3px 5px 0px 3px;
padding-top: 3px; padding-top: 3px;
padding-left: 5px;
padding-right: 3px;
} }
.separ { .separ {
@ -305,7 +334,7 @@ tooltip label {
color: $base03; color: $base03;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
margin-left: 8px; // margin-left: -10px;
margin-right: 8px; margin-right: 8px;
} }
@ -313,7 +342,7 @@ tooltip label {
color: $base03; color: $base03;
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
margin-right: 0px; margin-right: 3px;
} }
.works { .works {

View file

@ -17,8 +17,9 @@
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON") (defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
(defpoll HOST :interval "1h" "hostname") (defpoll HOST :interval "1h" "hostname")
(defpoll DISK :interval "1m" "disk") (defpoll DISK :interval "1m" "disk")
(defpoll gpu_percent :interval "1s" "gpu")
;; (defpoll nextcloud :interval "2s" "scripts/nextcloud.sh") ;; (defpoll nextcloud :interval "2s" "scripts/nextcloud.sh")
(deflisten volume_percent :interval "0.5s" "tail -F /tmp/vol") (deflisten volume_percent :interval "0.2s" "tail -F /tmp/vol")
(deflisten appname "scripts/appname") (deflisten appname "scripts/appname")
(deflisten workspaces :initial "[]" "scripts/get-workspaces") (deflisten workspaces :initial "[]" "scripts/get-workspaces")
@ -138,13 +139,10 @@
:space-evenly false :space-evenly false
:spacing 0 :spacing 0
(button (button
:onclick "scripts/pop system" :onclick "alacritty --class btop -e btop -p 2 &"
:class "icondisk" :class "icondisk"
:tooltip "${DISK}" :tooltip "${DISK}"
"󰋊") "󰋊 ${DISK}")))
(label
:text "${DISK}"
:class "disk_label")))
(defwidget bright [] (defwidget bright []
(box (box
@ -157,11 +155,7 @@
:class "iconbright" :class "iconbright"
;; :onclick "scripts/pop audio" ;; :onclick "scripts/pop audio"
:tooltip "${brightness_percent}%" :tooltip "${brightness_percent}%"
"") " ${brightness_percent}")))
(label
:text brightness_percent
:class "bright_label"))
)
(defwidget volume [] (defwidget volume []
(box (box
@ -171,12 +165,9 @@
:space-evenly false :space-evenly false
(button (button
:class "iconvol" :class "iconvol"
:onclick "scripts/pop audio" :onclick "alacritty --class pulsemixer -e pulsemixer &"
:tooltip "${volume_percent}%" :tooltip "${volume_percent}%"
"󰕾") "󰕾 ${volume_percent}")))
(label
:text volume_percent
:class "vol_label")))
(defwidget cpu [] (defwidget cpu []
(box (box
@ -185,13 +176,22 @@
:hexpand "false" :hexpand "false"
:space-evenly false :space-evenly false
(button (button
:onclick "scripts/pop system" :onclick "alacritty --class btop -e btop &"
:class "iconcpu" :class "iconcpu"
:tooltip "using ${EWW_CPU.avg}% of cpu" :tooltip "using ${EWW_CPU.avg}% of cpu"
"") " ${round(EWW_CPU.avg, 0)}%")))
(label
:text "${round(EWW_CPU.avg, 0)}%" (defwidget gpu []
:class "cpu_label"))) (box
:class "gpu_module"
:vexpand "false"
:hexpand "false"
:space-evenly false
(button
:onclick "alacritty --class btop -e nvtop &"
:class "icongpu"
:tooltip gpu_percent
"󱤓 ${gpu_percent}")))
(defwidget mem [] (defwidget mem []
(box (box
@ -200,13 +200,10 @@
:vexpand "true" :vexpand "true"
:hexpand "false" :hexpand "false"
(button (button
:onclick "scripts/pop system" :onclick "alacritty --class btop -e btop &"
:class "iconmem" :class "iconmem"
:tooltip "using ${EWW_RAM.used_mem_perc}% ram" :tooltip "using ${EWW_RAM.used_mem_perc}% ram"
"") " ${round(EWW_RAM.used_mem_perc, 0)}%")))
(label
:text "${round(EWW_RAM.used_mem_perc, 0)}%"
:class "mem_label")))
(defwidget kdeconnect [] (defwidget kdeconnect []
(box (box
@ -287,15 +284,16 @@
:text "|") :text "|")
(box (box
:orientation "h" :orientation "h"
:space-evenly true :space-evenly false
:class "sysmodules" :class "sysmodules"
(disk) (disk)
(cpu) (cpu)
(gpu)
(mem) (mem)
(volume)
;; {right_modules.width > 1 ? null : (bright)} ;; {right_modules.width > 1 ? null : (bright)}
(bright) (bright)
(bat)) (bat)
(volume))
(label (label
:class "right_sep" :class "right_sep"
:text "|") :text "|")

7
.config/eww/scripts/gaw Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env nu
def active [_change] {
hyprctl monitors -j | from json | where focused == true | get activeWorkspace.id | first
}
socat -u UNIX-CONNECT:/run/user/1000/hypr/29e2e59fdbab8ed2cc23a20e3c6043d5decb5cdc_1745939475_617930074/.socket2.sock - | lines | take until { is-empty } | active $in

View file

@ -74,7 +74,7 @@ command aud js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_
unbind t unbind t
"" Adding my own bindings "" Adding my own bindings
bind v composite hint -pipe a href | js -p tri.excmds.shellescape(JS_ARG) | exclaim_quiet empv bind v composite hint -pipe a href | js -p tri.excmds.shellescape(JS_ARG) | exclaim_quiet mpv
bind gt hint -W torrent bind gt hint -W torrent
bind gv current_url mpv bind gv current_url mpv
bind ga hint -W aud bind ga hint -W aud

View file

@ -6,11 +6,11 @@
"poetry2nix": "poetry2nix" "poetry2nix": "poetry2nix"
}, },
"locked": { "locked": {
"lastModified": 1744998480, "lastModified": 1746525479,
"narHash": "sha256-fGXcra5ppvBHLwW2AsmSksxRrYFonfL965n5URIPOtQ=", "narHash": "sha256-60BthdWowhsOHgzet3uix08+1s1tD/kzhUX75pf0+uU=",
"owner": "sdaqo", "owner": "sdaqo",
"repo": "anipy-cli", "repo": "anipy-cli",
"rev": "24747d398cc68eb61a44538c17e64409c7b407a0", "rev": "e8785d0205faa1079470fa823df3ab21f30c4a5b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -24,11 +24,11 @@
"fromYaml": "fromYaml" "fromYaml": "fromYaml"
}, },
"locked": { "locked": {
"lastModified": 1732200724, "lastModified": 1745523430,
"narHash": "sha256-+R1BH5wHhfnycySb7Sy5KbYEaTJZWm1h+LW1OtyhiTs=", "narHash": "sha256-EAYWV+kXbwsH+8G/8UtmcunDeKwLwSOyfcmzZUkWE/c=",
"owner": "SenchoPens", "owner": "SenchoPens",
"repo": "base16.nix", "repo": "base16.nix",
"rev": "153d52373b0fb2d343592871009a286ec8837aec", "rev": "58bfe2553d937d8af0564f79d5b950afbef69717",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -171,11 +171,11 @@
"firefox-gnome-theme": { "firefox-gnome-theme": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1743774811, "lastModified": 1744642301,
"narHash": "sha256-oiHLDHXq7ymsMVYSg92dD1OLnKLQoU/Gf2F1GoONLCE=", "narHash": "sha256-5A6LL7T0lttn1vrKsNOKUk9V0ittdW0VEqh6AtefxJ4=",
"owner": "rafaelmardojai", "owner": "rafaelmardojai",
"repo": "firefox-gnome-theme", "repo": "firefox-gnome-theme",
"rev": "df53a7a31872faf5ca53dd0730038a62ec63ca9e", "rev": "59e3de00f01e5adb851d824cf7911bd90c31083a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -187,11 +187,11 @@
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1717312683, "lastModified": 1746162366,
"narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=", "narHash": "sha256-5SSSZ/oQkwfcAz/o/6TlejlVGqeK08wyREBQ5qFFPhM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "flake-compat", "repo": "flake-compat",
"rev": "38fd3954cf65ce6faf3d0d45cd26059e059f07ea", "rev": "0f158086a2ecdbb138cd0429410e44994f1b7e4b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -412,11 +412,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745340124, "lastModified": 1746413188,
"narHash": "sha256-zQTOl/JPGjiAQoU1yraCGfPBg7yr4nlHNdbZy8Ebrl4=", "narHash": "sha256-i6BoiQP0PasExESQHszC0reQHfO6D4aI2GzOwZMOI20=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "c9433ae62fbb4bd09609e242569edc3b551e21a9", "rev": "8a318641ac13d3bc0a53651feaee9560f9b2d89a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -434,11 +434,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745198506, "lastModified": 1746369725,
"narHash": "sha256-0hVbHuqAnZUnnGaBTqNes0P0kfH+KKyup2boWDST0iI=", "narHash": "sha256-m3ai7LLFYsymMK0uVywCceWfUhP0k3CALyFOfcJACqE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "b0cc092405da805da6fa964f5a178343658ceaf0", "rev": "1a1793f6d940d22c6e49753548c5b6cb7dc5545d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -499,11 +499,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1745320144, "lastModified": 1746529785,
"narHash": "sha256-Rbw+E3Na694sTPjNSRFHtT1o31eQXO3OLEzM+25kcME=", "narHash": "sha256-gfBL3G+hepeQzg+vtLF0nd9DB4IggfDuCYUGJaO1Jp0=",
"owner": "lilyinstarlight", "owner": "lilyinstarlight",
"repo": "nixos-cosmic", "repo": "nixos-cosmic",
"rev": "84d7c1002734f21f150c641da095c5ce43f1cb98", "rev": "3779328f563511c7e163d3206142dc409eab1988",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -514,11 +514,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1744633460, "lastModified": 1746468201,
"narHash": "sha256-fbWE4Xpw6eH0Q6in+ymNuDwTkqmFmtxcQEmtRuKDTTk=", "narHash": "sha256-hSOSlrvMJwGr8hX/gc0mnhUf5UIClMDUAadfXlSXzfc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "9a049b4a421076d27fee3eec664a18b2066824cb", "rev": "6aabf68429c0a414221d1790945babfb6a0bd068",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -530,11 +530,11 @@
}, },
"nixos-unstable-small": { "nixos-unstable-small": {
"locked": { "locked": {
"lastModified": 1745215074, "lastModified": 1746511170,
"narHash": "sha256-JjkdlVI9BImDV5RrCiJk17cMSIqbefUXBM9trHRif+c=", "narHash": "sha256-/LHyhxNwop/1lyg9kclGHBpyBadLFZda4z0QOzERUKY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "78e2cd1a1590f8c70b329cbc7d13bb2ab5b5a16c", "rev": "5a837cb8662b841d5e3f491791aa1c389f68b25e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -593,11 +593,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1744440957, "lastModified": 1746422338,
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=", "narHash": "sha256-NTtKOTLQv6dPfRe00OGSywg37A1FYqldS6xiNmqBUYc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d", "rev": "5b35d248e9206c1f3baf8de6a7683fee126364aa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -609,11 +609,11 @@
}, },
"nixpkgs-stable_3": { "nixpkgs-stable_3": {
"locked": { "locked": {
"lastModified": 1744440957, "lastModified": 1746422338,
"narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=", "narHash": "sha256-NTtKOTLQv6dPfRe00OGSywg37A1FYqldS6xiNmqBUYc=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d", "rev": "5b35d248e9206c1f3baf8de6a7683fee126364aa",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -689,11 +689,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1744932701, "lastModified": 1746328495,
"narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=", "narHash": "sha256-uKCfuDs7ZM3QpCE/jnfubTg459CnKnJG/LwqEVEdEiw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef", "rev": "979daf34c8cacebcd917d540070b52a3c2b9b16e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -742,11 +742,11 @@
"treefmt-nix": "treefmt-nix_2" "treefmt-nix": "treefmt-nix_2"
}, },
"locked": { "locked": {
"lastModified": 1743884191, "lastModified": 1746056780,
"narHash": "sha256-foVcginhVvjg8ZnTzY5wwMeZ4wjJ8yX66PW5kgyivPE=", "narHash": "sha256-/emueQGaoT4vu0QjU9LDOG5roxRSfdY0K2KkxuzazcM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "fde90f5f52e13eed110a0e53a2818a2b09e4d37c", "rev": "d476cd0972dd6242d76374fcc277e6735715c167",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -847,11 +847,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1745289264, "lastModified": 1746498961,
"narHash": "sha256-7nt+UJ7qaIUe2J7BdnEEph9n2eKEwxUwKS/QIr091uA=", "narHash": "sha256-rp+oh/N88JKHu7ySPuGiA3lBUVIsrOtHbN2eWJdYCgk=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "3b7171858c20d5293360042936058fb0c4cb93a9", "rev": "24b00064cdd1d7ba25200c4a8565dc455dc732ba",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -868,11 +868,11 @@
"nixpkgs-24_11": "nixpkgs-24_11" "nixpkgs-24_11": "nixpkgs-24_11"
}, },
"locked": { "locked": {
"lastModified": 1734884447, "lastModified": 1746469806,
"narHash": "sha256-HA9fAmGNGf0cOYrhgoa+B6BxNVqGAYXfLyx8zIS0ZBY=", "narHash": "sha256-kL3cc25sc0x+6gBZYjuE4566RT1E3XLQs4V8sl7D+VE=",
"owner": "simple-nixos-mailserver", "owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver", "repo": "nixos-mailserver",
"rev": "63209b1def2c9fc891ad271f474a3464a5833294", "rev": "14857a0309d7bbdf7c51bbfa309d0d13448ae77e",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -906,11 +906,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1745332124, "lastModified": 1746519367,
"narHash": "sha256-2lRWKSUlKTsfqLhyxXsxKcoPQG5tFQ3GbTne8/vVCQY=", "narHash": "sha256-bdCCX84HW4CecAgokOi0BgRBR3JSPeGFlusWAGIh3fE=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "375b1de2424aac1338ee6e8b4ef15976b64b0462", "rev": "a2b80b900647f28658a2c9456d9a10ab4aa3b250",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1015,11 +1015,11 @@
"tinted-schemes": { "tinted-schemes": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1742851696, "lastModified": 1744974599,
"narHash": "sha256-sR4K+OVFKeUOvNIqcCr5Br7NLxOBEwoAgsIyjsZmb8s=", "narHash": "sha256-Fg+rdGs5FAgfkYNCs74lnl8vkQmiZVdBsziyPhVqrlY=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "schemes", "repo": "schemes",
"rev": "c37771c4ae8ff1667e27ddcf24991ebeb94a4e77", "rev": "28c26a621123ad4ebd5bbfb34ab39421c0144bdd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1031,11 +1031,11 @@
"tinted-tmux": { "tinted-tmux": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1743296873, "lastModified": 1745111349,
"narHash": "sha256-8IQulrb1OBSxMwdKijO9fB70ON//V32dpK9Uioy7FzY=", "narHash": "sha256-udV+nHdpqgkJI9D0mtvvAzbqubt9jdifS/KhTTbJ45w=",
"owner": "tinted-theming", "owner": "tinted-theming",
"repo": "tinted-tmux", "repo": "tinted-tmux",
"rev": "af5152c8d7546dfb4ff6df94080bf5ff54f64e3a", "rev": "e009f18a01182b63559fb28f1c786eb027c3dee9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -93,7 +93,7 @@ in {
"text/txt" = "emacsclient.desktop"; "text/txt" = "emacsclient.desktop";
"text/rs" = "emacsclient.desktop"; "text/rs" = "emacsclient.desktop";
"text/plain" = "emacsclient.desktop"; "text/plain" = "emacsclient.desktop";
"application/pdf" = "emacsclient.desktop"; "application/pdf" = "okular.desktop";
"x-scheme-handler/about" = "librewolf.desktop"; "x-scheme-handler/about" = "librewolf.desktop";
"x-scheme-handler/unknown" = "librewolf.desktop"; "x-scheme-handler/unknown" = "librewolf.desktop";
"x-scheme-handler/magnet" = "torrent.desktop"; "x-scheme-handler/magnet" = "torrent.desktop";
@ -132,7 +132,7 @@ in {
"text/txt" = "emacsclient.desktop"; "text/txt" = "emacsclient.desktop";
"text/rs" = "emacsclient.desktop"; "text/rs" = "emacsclient.desktop";
"text/plain" = "emacsclient.desktop"; "text/plain" = "emacsclient.desktop";
"application/pdf" = "emacsclient.desktop"; "application/pdf" = "okular.desktop";
"x-scheme-handler/about" = "librewolf.desktop"; "x-scheme-handler/about" = "librewolf.desktop";
"x-scheme-handler/unknown" = "librewolf.desktop"; "x-scheme-handler/unknown" = "librewolf.desktop";
"x-scheme-handler/magnet" = "torrent.desktop"; "x-scheme-handler/magnet" = "torrent.desktop";
@ -634,6 +634,10 @@ in {
recursive = true; recursive = true;
}; };
# home.file.".librewolf/native-messaging-hosts/tridactyl.json" = {
# source = pkgs.tridactyl-native;
# };
programs.librewolf = { programs.librewolf = {
enable = true; enable = true;
package = pkgs.librewolf-wayland.override { package = pkgs.librewolf-wayland.override {
@ -660,12 +664,12 @@ in {
output = [ "DP-1" "eDP-1" ]; output = [ "DP-1" "eDP-1" ];
position = if laptop then "bottom" else "top"; position = if laptop then "bottom" else "top";
height = 35; height = 35;
width = if laptop then 1400 else 2100; width = if laptop then 1400 else 3000;
# Choose the order of the modules "custom/wintitle", # Choose the order of the modules "custom/wintitle",
modules-left = [ "hyprland/workspaces" "hyprland/window" ]; modules-left = [ "hyprland/workspaces" "hyprland/window" ];
modules-center = [ ]; modules-center = [ ];
modules-right = modules-right =
[ "pulseaudio" "backlight" "disk" "memory" "cpu" "battery" "tray" "clock" ]; [ "pulseaudio" "backlight" "disk" "memory" "cpu" "battery" "custom/gpu" "tray" "clock" ];
margin-top = if laptop then -5 else 5; margin-top = if laptop then -5 else 5;
margin-bottom = if laptop then 4 else 0; margin-bottom = if laptop then 4 else 0;
margin-left = 6; margin-left = 6;
@ -690,7 +694,7 @@ in {
# on-scroll-down = "hyprctl dispatch workspace e-1"; # on-scroll-down = "hyprctl dispatch workspace e-1";
}; };
tray = { tray = {
icon-size = 21; icon-size = 20;
spacing = 10; spacing = 10;
}; };
clock = { clock = {
@ -700,8 +704,15 @@ in {
format-alt = "{:%Y-%m-%d}"; format-alt = "{:%Y-%m-%d}";
format = "{:%a %b %e, %I:%M %p}"; format = "{:%a %b %e, %I:%M %p}";
}; };
cpu = { format = " {usage}%"; }; cpu = { format = " {usage}%"; on-click = "alacritty --class btop -e btop"; };
memory = { format = " {}%"; }; memory = { format = " {}%"; on-click = "alacritty --class btop -e btop"; };
"custom/gpu" = {
exec = "cat /sys/class/hwmon/hwmon0/device/gpu_busy_percent";
format = "󱤓 {}%";
return-type = "";
interval = 1;
on-click = "alacritty --class btop -e nvtop";
};
temperature = { temperature = {
# "thermal-zone": 2, # "thermal-zone": 2,
# "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", # "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
@ -744,7 +755,7 @@ in {
}; };
pulseaudio = { pulseaudio = {
scroll-step = 1; scroll-step = 1;
format = "{icon} {volume}%"; format = "{icon} {volume}%";
format-muted = "󰝟 muted"; format-muted = "󰝟 muted";
format-source = ""; format-source = "";
format-source-muted = ""; format-source-muted = "";
@ -932,7 +943,7 @@ in {
padding-right: 5px; padding-right: 5px;
border-radius: 20px; border-radius: 20px;
transition: none; transition: none;
color: @base09; color: @base0A;
background: transparent; background: transparent;
} }
@ -954,6 +965,15 @@ in {
background: transparent; background: transparent;
} }
#custom-gpu {
padding-left: 5px;
padding-right: 5px;
border-radius: 20px;
transition: none;
color: @base08;
background: transparent;
}
#battery { #battery {
padding-left: 5px; padding-left: 5px;
padding-right: 5px; padding-right: 5px;
@ -1430,7 +1450,7 @@ in {
padding.y = 10; padding.y = 10;
dynamic_padding = true; dynamic_padding = true;
}; };
terminal.shell.program = "zellij"; terminal.shell.program = "nu";
font = { font = {
normal = { normal = {
family = "VictorMono Nerd Font"; family = "VictorMono Nerd Font";

View file

@ -150,7 +150,7 @@ in
rounding = 18; rounding = 18;
# multisample_edges=true # multisample_edges=true
active_opacity = 0.97; active_opacity = 0.97;
inactive_opacity = 0.97; inactive_opacity = 0.70;
fullscreen_opacity = 1.0; fullscreen_opacity = 1.0;
blur = { blur = {
@ -355,23 +355,26 @@ in
# Blur waybar # Blur waybar
# blurls = "gtk-layer-shell"; # blurls = "gtk-layer-shell";
layerrule = [
# "blur, gtk-layer-shell"
"ignorezero, gtk-layer-shell"
"animation snapslide, gtk-layer-shell"
];
# blurls=notifications # blurls=notifications
exec-once = [ exec-once = [
"kwalletd6" "kwalletd6"
# "eww daemon" "eww daemon"
"hyprpaper" "hyprpaper"
# "eww open ${if laptop then "bar0" else "bar1"}" "eww open ${if laptop then "bar0" else "bar1"}"
# "dunst" # "dunst"
"waybar" # "waybar"
"rbw-agent" "rbw-agent"
"hyprctl dispatch --batch 'splitratio 1; splitration -0.35'" "hyprctl dispatch --batch 'splitratio 1; splitration -0.35'"
"dbus-update-activation-environment --systemd --all" "dbus-update-activation-environment --systemd --all"
"/usr/lib/kdeconnectd" "/usr/lib/kdeconnectd"
# "systemctl --user stop jellyfin-mpv-shim" "systemctl --user restart jellyfin-mpv-shim"
# "systemctl --user stop emacs" "systemctl --user restart nextcloud-client"
"systemctl --user stop nextcloud-client"
# "jellyfin-mpv-shim"
# "nextcloud" # "nextcloud"
"kdeconnect-indicator" "kdeconnect-indicator"
"wl-paste --watch cliphist store" "wl-paste --watch cliphist store"

View file

@ -205,10 +205,10 @@ in
runAsRoot = false; runAsRoot = false;
ovmf = { ovmf = {
enable = true; enable = true;
# packages = [ packages = [
# pkgs.OVMFFull.fd pkgs.OVMFFull.fd
# pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd
# ]; ];
}; };
swtpm.enable = true; swtpm.enable = true;
}; };

View file

@ -60,7 +60,7 @@
samba samba
blesh blesh
# OVMFFull # OVMFFull
# quickemu quickemu
macchina macchina
neofetch neofetch
fwupd fwupd

View file

@ -22,6 +22,7 @@
kdePackages.breeze kdePackages.breeze
kdePackages.dolphin kdePackages.dolphin
geticons geticons
pdfmixtool
# kdePackages.kio-fuse # kdePackages.kio-fuse
# kdePackages.kio-extras # kdePackages.kio-extras
# kdePackages.qtsvg # kdePackages.qtsvg

View file

@ -1,5 +1,9 @@
#!/usr/bin/env nu #!/usr/bin/env nu
def main [] { def main [] {
btrfs file df / | lines | first | split column -r '\s' | get column4 | str replace 'used=' '' | first if (hostname) == "kaladin" {
df -h / | lines | get 1 | split column -r '\s' | get column5 | first
} else {
btrfs file df / | lines | first | split column -r '\s' | get column4 | str replace 'used=' '' | first
}
} }

View file

@ -1,39 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env nu
export MOZ_ENABLE_WAYLAND=1
echo $MOZ_ENABLE_WAYLAND
# Check to see if librewolf is running if (hyprctl clients -j | from json | where initialTitle == LibreWolf | is-not-empty) {
if [ $(pgrep -c librewolf) -gt 0 ]; then hyprctl dispatch focuswindow "initialtitle:LibreWolf"
echo "ff running" } else {
librewolf --name "lw"
if [ "$XDG_SESSION_TYPE" = "x11" ]; then }
#X11
ffrg=$(wmctrl -lx | rg librewolf | awk '{print $1}')
# echo $emacsrg
if [ -z $ffrg ]; then
exec librewolf
exit
else
exec wmctrl -ia $ffrg
exit
fi
else
if [ "$KDE_FULL_SESSION" = "true" ]; then
echo "KDE"
exec /home/chris/bin/ww -fa librewolf -c librewolf
exit
else
# WAYLAND
ffrg=$(hyprctl clients | rg ff)
ffwin=$(echo $ffrg | sed 's/.*\: //')
# echo $ffwin
exec hyprctl dispatch focuswindow "class:lw"
exit
fi
fi
else
exec librewolf --name "lw"
fi

39
scripts/fflof.bak Executable file
View file

@ -0,0 +1,39 @@
#!/usr/bin/env bash
export MOZ_ENABLE_WAYLAND=1
echo $MOZ_ENABLE_WAYLAND
# Check to see if librewolf is running
if [ $(pgrep -c librewolf) -gt 0 ]; then
echo "ff running"
if [ "$XDG_SESSION_TYPE" = "x11" ]; then
#X11
ffrg=$(wmctrl -lx | rg librewolf | awk '{print $1}')
# echo $emacsrg
if [ -z $ffrg ]; then
exec librewolf
exit
else
exec wmctrl -ia $ffrg
exit
fi
else
if [ "$KDE_FULL_SESSION" = "true" ]; then
echo "KDE"
exec /home/chris/bin/ww -fa librewolf -c librewolf
exit
else
# WAYLAND
ffrg=$(hyprctl clients | rg ff)
ffwin=$(echo $ffrg | sed 's/.*\: //')
# echo $ffwin
exec hyprctl dispatch focuswindow "class:lw"
exit
fi
fi
else
exec librewolf --name "lw"
fi

2
scripts/gpu Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env nu
nvtop -s | from json | get gpu_util | first

View file

@ -1,19 +0,0 @@
#!/bin/sh
export MOZ_ENABLE_WAYLAND=1
export QT_SCALE_FACTOR=1
# exec ydotoold &
# exec systemctl enable --user --now libinput-gestures &
# exec emacs --daemon &
systemctl --user stop jellyfin-mpv-shim.service &
systemctl --user stop nextcloud-client.service &
systemctl --user stop emacs.service &
sleep 1
exec emacs --daemon &
exec jellyfin-mpv-shim &
exec nextcloud --background &

14
scripts/startup.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
export MOZ_ENABLE_WAYLAND=1
export QT_SCALE_FACTOR=1
# exec ydotoold &
# exec systemctl enable --user --now libinput-gestures &
# exec emacs --daemon &
systemctl --user restart jellyfin-mpv-shim.service &
systemctl --user restart nextcloud-client.service &
systemctl --user restart emacs.service &