Flake for my NixOS devices

Better Theming

bwc9876.dev e0c68b68 e48f6cf6

verified
+27 -15
+1
base/shell.nix
··· 45 45 neovim = { 46 46 enable = true; 47 47 defaultEditor = true; 48 + catppuccin.enable = false; 48 49 plugins = with pkgs; [ 49 50 vimPlugins.transparent-nvim 50 51 ];
+1 -1
create-sys/src/add.rs
··· 207 207 208 208 let file = sys.generate_file(); 209 209 210 - let edited_file = Editor::new("Review the new system file with (e), confirm with (enter)").with_predefined_text(&file).with_file_extension("nix").prompt().context("Failed to get edits")?; 210 + let edited_file = Editor::new("Review the new system file with (e), confirm with (enter)").with_predefined_text(&file).with_file_extension(".nix").prompt().context("Failed to get edits")?; 211 211 212 212 let path = flake_root.join("systems").join(format!("{}.nix", sys.name)); 213 213
res/pictures/background.jpg

This is a binary file and will not be displayed.

res/pictures/background.png

This is a binary file and will not be displayed.

+9 -1
roles/graphics/hypr.nix
··· 29 29 general = { 30 30 border_size = 2; 31 31 resize_on_border = true; 32 - "col.active_border" = "rgb(ff0000) rgb(ff9a00) rgb(d0de21) rgb(4fdc4a) rgb(3fdad8) rgb(2fc9e2) rgb(1c7fee) rgb(5f15f2) rgb(ba0cf8) rgb(fb07d9) 45deg"; 32 + "col.active_border" = let 33 + red = "rgb(f38ba8)"; 34 + peach = "rgb(fab387)"; 35 + yellow = "rgb(f9e2af)"; 36 + green = "rgb(a6e3a1)"; 37 + sapphire = "rgb(74c7ec)"; 38 + lavender = "rgb(b4befe)"; 39 + mauve = "rgb(cba6f7)"; 40 + in "${red} ${peach} ${yellow} ${green} ${sapphire} ${lavender} ${mauve} 225deg"; 33 41 }; 34 42 decoration = { 35 43 rounding = 10;
+2 -2
roles/graphics/theming.nix
··· 29 29 settings = { 30 30 ipc = "on"; 31 31 splash = false; 32 - preload = ["${inputs.self}/res/pictures/background.jpg"]; 33 - wallpaper = [",${inputs.self}/res/pictures/background.jpg"]; 32 + preload = ["${inputs.self}/res/pictures/background.png"]; 33 + wallpaper = [",${inputs.self}/res/pictures/background.png"]; 34 34 }; 35 35 }; 36 36
+14 -11
roles/graphics/waybar.nix
··· 18 18 } 19 19 20 20 window#waybar { 21 - background: rgba(252, 116, 150, 0); 21 + background: rgba(49, 50, 68, 0.65); 22 22 color: @text; 23 23 } 24 24 ··· 58 58 #waybar .modules-left, 59 59 #waybar .modules-right { 60 60 margin-top: 10px; 61 + margin-bottom: 5px; 61 62 } 62 63 63 64 #waybar .modules-center { 64 - margin-bottom: 10px; 65 + margin-top: 5px; 66 + margin-bottom: 5px; 65 67 } 66 68 67 69 #battery.warning { ··· 80 82 #workspaces { 81 83 padding: 10px; 82 84 border-radius: 5rem; 83 - background: @mantle; 84 - } 85 - 86 - #workspaces { 87 - margin-bottom: 15px; 85 + border: none; 86 + background: none; 88 87 } 89 88 90 89 #taskbar button, 91 90 #workspaces button { 92 91 color: @text; 93 92 border-radius: 5rem; 94 - padding: 10px 15px; 93 + padding: 5px 15px; 95 94 margin: 0 5px; 96 95 background: @crust; 96 + border: 2px solid @base; 97 + } 98 + 99 + #taskbar button:hover, #workspaces button:hover { 100 + background: @mantle; 97 101 } 98 102 99 103 #workspaces button { ··· 103 107 #cpu, 104 108 #memory, 105 109 #temperature { 106 - font-size: 1.5rem; 107 - padding: 5px 25px; 108 - margin-bottom: 25px; 110 + font-size: 1.5rem; 111 + padding: 10px 25px; 109 112 } 110 113 111 114 #cpu.warning,