Flake for my NixOS devices

Less manual scaling, restyle waybar

bwc9876.dev 5558abca 917a5e73

verified
+56 -77
+25 -11
homeModules/gdi.nix
··· 19 19 cursorTheme = { 20 20 name = "catppuccin-mocha-dark-cursors"; 21 21 package = pkgs.catppuccin-cursors.mochaDark; 22 - size = 24; 22 + size = 16; 23 23 }; 24 24 in 25 25 lib.mkIf config.cow.gdi.enable { ··· 107 107 clipboard.disable-primary = true; 108 108 109 109 input = { 110 + focus-follows-mouse = { 111 + enable = true; 112 + max-scroll-amount = "10%"; 113 + }; 110 114 keyboard.numlock = true; 111 115 touchpad.natural-scroll = true; 112 116 }; 113 117 114 118 layout = { 119 + # gaps = 4; 120 + struts = let val = -4; in { 121 + top = val; 122 + bottom = val; 123 + left = val; 124 + right = val; 125 + }; 126 + focus-ring.width = 2; 115 127 focus-ring.active.gradient = { 116 - in' = "oklab"; 128 + in' = "oklch longer hue"; 117 129 angle = 135; 118 130 relative-to = "workspace-view"; 119 - from = "#74c7ec"; 120 - to = "#cba6f7"; 131 + from = "#0f08"; 132 + to = "#f007"; 121 133 }; 122 134 }; 123 135 ··· 161 173 "Mod+BracketRight".action = consume-or-expel-window-right; 162 174 163 175 "Mod+Comma".action = set-column-width "-100"; 176 + "Mod+Shift+Comma".action = set-column-width "-20"; 164 177 "Mod+Period".action = set-column-width "+100"; 178 + "Mod+Shift+Period".action = set-column-width "+20"; 165 179 166 180 "Mod+F".action = maximize-column; 167 181 "Mod+Shift+F".action = fullscreen-window; ··· 476 490 enable = true; 477 491 settings = { 478 492 control-center-exclusive-zone = false; 479 - control-center-height = 1000; 493 + # control-center-height = 1000; 480 494 control-center-margin-bottom = 10; 481 495 control-center-margin-left = 10; 482 496 control-center-margin-right = 10; 483 497 control-center-margin-top = 0; 484 - control-center-width = 800; 498 + # control-center-width = 800; 485 499 fit-to-screen = false; 486 500 hide-on-action = true; 487 501 hide-on-clear = false; 488 502 image-visibility = "when-available"; 489 503 keyboard-shortcuts = true; 490 - notification-body-image-height = 100; 491 - notification-body-image-width = 200; 492 - notification-icon-size = 64; 493 - notification-window-width = 500; 504 + # notification-body-image-height = 100; 505 + # notification-body-image-width = 200; 506 + notification-icon-size = 32; 507 + # notification-window-width = 500; 494 508 positionX = "center"; 495 509 positionY = "top"; 496 510 script-fail-notify = true; ··· 691 705 extraConfig = '' 692 706 return { 693 707 font = wezterm.font("monospace"), 694 - font_size = 18.0, 708 + font_size = 12.0, 695 709 color_scheme = "Catppuccin Mocha", 696 710 enable_tab_bar = false, 697 711 window_background_opacity = 0.92,
+3 -3
homeModules/waybar.nix
··· 232 232 scroll-step = 5; 233 233 }; 234 234 tray = { 235 - icon-size = 25; 235 + # icon-size = 25; 236 236 show-passive-items = true; 237 - spacing = 5; 237 + spacing = 2; 238 238 }; 239 239 user = { 240 240 format = " {user}"; ··· 300 300 # modules-center = ["wlr/taskbar"]; 301 301 modules-left = ["mpris"]; 302 302 modules-right = [ 303 + "power-profiles-daemon" 303 304 "temperature" 304 305 "cpu" 305 - "power-profiles-daemon" 306 306 "memory" 307 307 ]; 308 308 position = "bottom";
+1 -1
nixosConfigurations/aperture.nix
··· 46 46 }; 47 47 48 48 home-manager.users.bean.programs.niri.settings = { 49 - outputs."eDP-1".scale = 1; 49 + outputs."eDP-1".scale = 1.25; 50 50 }; 51 51 52 52 environment.systemPackages = with pkgs; [
+27 -62
res/waybar.css
··· 1 1 @import "catppuccin.css"; 2 2 3 3 * { 4 + font-size: 12pt; 4 5 font-family: monospace; 5 6 } 6 7 7 8 window#waybar { 8 - background: rgba(49, 50, 68, 0.65); 9 + background: rgba(49, 50, 68, 0.01); 9 10 color: @text; 10 11 } 11 12 12 - .modules-left > * > *, 13 - .modules-right > * > * { 13 + .module { 14 14 background: @crust; 15 15 border: 2px solid @base; 16 - border-radius: 5rem; 17 - padding: 5px 15px; 18 - margin: 2px 2px; 16 + border-radius: 10px; 17 + padding: 5px 8px; 18 + margin-left: 1px; 19 + margin-right: 0; 20 + margin-top: 4px; 21 + margin-bottom: 0; 19 22 } 20 23 21 24 #bluetooth.disabled { ··· 23 26 } 24 27 25 28 #waybar .modules-left > *:first-child > * { 26 - margin-left: 25px; 29 + margin-left: 10px; 27 30 } 28 31 29 32 #waybar .modules-right > *:last-child > * { 30 - margin-right: 25px; 33 + margin-right: 10px; 31 34 } 32 35 33 - #waybar .modules-left, 34 - #waybar .modules-right { 35 - margin-top: 2px; 36 - margin-bottom: 2px; 37 - } 38 - 39 - #waybar .modules-center { 40 - margin-top: 2px; 41 - margin-bottom: 2px; 42 - } 36 + /* #waybar .modules-left, */ 37 + /* #waybar .modules-right { */ 38 + /* margin-top: 2px; */ 39 + /* margin-bottom: 2px; */ 40 + /* } */ 43 41 44 42 #battery.warning { 45 43 border-color: @yellow; ··· 53 51 border-color: @green; 54 52 } 55 53 56 - #taskbar, 57 - #workspaces { 58 - padding: 10px; 59 - border-radius: 5rem; 60 - border: none; 61 - background: none; 62 - } 63 - 64 - #taskbar button, 65 - #workspaces button { 66 - color: @text; 67 - border-radius: 5rem; 68 - padding: 5px 15px; 69 - margin: 0 5px; 70 - background: @crust; 71 - border: 2px solid @base; 72 - } 73 - 74 - #taskbar button:hover, 75 - #workspaces button:hover { 76 - background: @mantle; 77 - } 78 - 79 - #cpu, 80 - #memory, 81 - #temperature { 82 - padding: 10px 25px; 83 - } 84 - 85 54 #cpu.warning, 86 55 #memory.warning { 87 56 border-color: @yellow; ··· 93 62 border-color: @red; 94 63 } 95 64 96 - #workspaces button.active { 97 - border: 2px solid @sapphire; 98 - } 99 - 100 - #taskbar button.active { 101 - border: 2px solid @sapphire; 102 - } 103 - 104 65 #idle_inhibitor.activated { 105 66 border-color: @mauve; 106 67 } ··· 134 95 135 96 #privacy-item { 136 97 border-radius: 5rem; 137 - padding: 5px 15px; 138 - margin: 5px 2px; 139 - border: 2px solid @red; 98 + padding: 5px 8px; 99 + margin: 2px 2px; 100 + border: solid 2px @red; 140 101 background-color: @crust; 141 102 } 142 103 ··· 212 173 /* Some fixes for icon spacing */ 213 174 214 175 #custom-notification { 215 - padding: 0 1em 0 .9em; 176 + padding-right: 1em; 177 + padding-left: .9em; 216 178 } 217 179 218 180 #idle_inhibitor { 219 - padding: 0 1em 0 .7em; 181 + padding-right: 1em; 182 + padding-left: .7em; 220 183 } 221 184 222 185 #power-profiles-daemon { 223 - padding: 0 1em 0 .8em; 186 + padding-left: .8em; 187 + padding-right: 1em; 224 188 } 225 189 226 190 #pulseaudio.muted { 227 - padding: 0 .8em 0 .55em; 191 + padding-right: .8em; 192 + padding-left: .55em; 228 193 } 229 194 230 195