All my system configs and packages in one repo

leah/niri: add wleave; hjem-ctp: add wleave

pluie.me fa5d1594 0a329f7c

verified
+60 -2
+1
modules/hjem-ctp/default.nix
··· 21 21 ./fuzzel.nix 22 22 # ./plasma.nix 23 23 ./vencord.nix 24 + ./wleave.nix 24 25 ]; 25 26 26 27 _module.args = { inherit ctp-lib; };
+46
modules/hjem-ctp/wleave.nix
··· 1 + # Catppuccin theme for wleave 2 + { 3 + config, 4 + ctp-lib, 5 + lib, 6 + pkgs, 7 + ... 8 + }: 9 + let 10 + cfg = config.ctp.wleave; 11 + 12 + src = pkgs.fetchFromGitHub { 13 + owner = "catppuccin"; 14 + repo = "wleave"; 15 + rev = "b690cee13b944890e43a5fb629ccdff86cffbbb3"; 16 + hash = "sha256-QUSDx5M+BG7YqI4MBsOKFPxvZHQtCa8ibT0Ln4FPQ7I="; 17 + }; 18 + 19 + # Generate the CSS required to override all icons 20 + # with their Catppuccin-ified counterparts 21 + iconsCss = 22 + lib.concatMapStrings 23 + (btn: '' 24 + #${btn} { background-image: url("${src}/icons/wleave/${cfg.flavor}/${cfg.accent}/${btn}.svg"); } 25 + '') 26 + [ 27 + "lock" 28 + "logout" 29 + "suspend" 30 + "hibernate" 31 + "shutdown" 32 + "reboot" 33 + ]; 34 + in 35 + { 36 + options.ctp.wleave = ctp-lib.mkCatppuccinOptions "wleave" { 37 + withAccent = true; 38 + }; 39 + 40 + config = lib.mkIf cfg.enable { 41 + files.".config/wleave/style.css".source = pkgs.concatText "wleave-style.css" [ 42 + "${src}/themes/${cfg.flavor}/${cfg.accent}.css" 43 + (pkgs.writeText "wleave-icons.css" iconsCss) 44 + ]; 45 + }; 46 + }
+1
users/leah/presets/niri/default.nix
··· 22 22 waybar 23 23 xwayland-satellite 24 24 brightnessctl 25 + wleave 25 26 26 27 # Desktop utilities 27 28 file-roller
+6 -1
users/leah/presets/niri/waybar/config.nix
··· 21 21 22 22 text = '' 23 23 poll_rate=$1 24 - intel_gpu_top -J -s $poll_rate | jq -c --unbuffered --stream ' 24 + intel_gpu_top -J -s "$poll_rate" | jq -c --unbuffered --stream ' 25 25 fromstream(2|truncate_stream(inputs)) 26 26 | select(has("Render/3D")) 27 27 | { ··· 44 44 "group/appearance" 45 45 "group/connectivity" 46 46 "battery" 47 + "custom/wleave" 47 48 ]; 48 49 49 50 "group/apps" = { ··· 175 176 on-click = "swaync-client -t -sw"; 176 177 on-click-right = "swaync-client -d -sw"; 177 178 escape = true; 179 + }; 180 + "custom/wleave" = { 181 + format = ""; 182 + on-click = "wleave"; 178 183 }; 179 184 } 180 185 {
+5 -1
users/leah/presets/niri/waybar/style.css
··· 77 77 #cpu { 78 78 color: #fab387; /* Peach */ 79 79 } 80 - #custom-gpu { 80 + #custom-gpu-nvidia, #custom-gpu-intel { 81 81 color: #b4befe; /* Lavender */ 82 82 } 83 83 #memory { ··· 110 110 color: #fab387; /* Peach */ 111 111 } 112 112 #battery.critical { 113 + color: #f38ba8; /* Red */ 114 + } 115 + 116 + #custom-wleave { 113 117 color: #f38ba8; /* Red */ 114 118 } 115 119
+1
users/leah/programs/default.nix
··· 34 34 vlc 35 35 thunderbird 36 36 telegram-desktop 37 + inkscape 37 38 38 39 # Command-line apps 39 40 just