Vic's *Nix config.

more niri

+110 -29
+12 -5
modules/community/features/niri-desktop.nix
··· 1 - {lib, ...}: { 2 - flake.modules.nixos.niri-desktop = { 3 - programs.niri.enable = true; 4 - services.displayManager.defaultSession = lib.mkForce "niri"; 5 - }; 1 + { lib, ... }: 2 + { 3 + flake.modules.nixos.niri-desktop = 4 + { pkgs, ... }: 5 + { 6 + programs.niri.enable = true; 7 + services.displayManager.defaultSession = lib.mkForce "niri"; 8 + environment.systemPackages = [ 9 + pkgs.brightnessctl 10 + pkgs.swaybg 11 + ]; 12 + }; 6 13 }
+2 -1
modules/community/features/xfce-desktop.nix
··· 1 - {lib, ...}: { 1 + { lib, ... }: 2 + { 2 3 flake.modules.nixos.xfce-desktop = { 3 4 # https://gist.github.com/nat-418/1101881371c9a7b419ba5f944a7118b0 4 5 services.xserver = {
+1 -1
modules/hosts/nargun/configuration.nix
··· 1 - { inputs, lib, ... }: 1 + { inputs, ... }: 2 2 let 3 3 flake.modules.nixos.nargun.imports = with inputs.self.modules.nixos; [ 4 4 vic
+91 -20
modules/vic/dots/config/niri/config.kdl
··· 2 2 // "/-" comments out the following node. 3 3 // Check the wiki for a full description of the configuration: 4 4 // https://yalter.github.io/niri/Configuration:-Introduction 5 + environment { 6 + ELECTRON_OZONE_PLATFORM_HINT "auto" 7 + // DISPLAY ":0" 8 + } 9 + cursor { 10 + // xcursor-theme "breeze_cursors" 11 + xcursor-size 48 12 + hide-when-typing 13 + hide-after-inactive-ms 1000 14 + } 5 15 // Input device configuration. 6 16 // Find the full list of options on the wiki: 7 17 // https://yalter.github.io/niri/Configuration:-Input ··· 29 39 touchpad { 30 40 // off 31 41 tap 32 - // dwt 42 + dwt 33 43 // dwtp 34 - // drag false 35 - // drag-lock 44 + drag true 45 + drag-lock 36 46 natural-scroll 37 47 // accel-speed 0.2 38 48 // accel-profile "flat" ··· 58 68 59 69 } 60 70 // Uncomment this to make the mouse warp to the center of newly focused windows. 61 - warp-mouse-to-focus 71 + warp-mouse-to-focus mode="center-xy-always" 62 72 // Focus windows and outputs automatically when moving the mouse into them. 63 73 // Setting max-scroll-amount="0%" makes it work only on windows already fully on screen. 64 - focus-follows-mouse max-scroll-amount="0%" 74 + // focus-follows-mouse max-scroll-amount="0%" 75 + focus-follows-mouse 76 + workspace-auto-back-and-forth 77 + // mod-key "Alt" 78 + // mod-key-nested "Super" 79 + } 80 + /-switch-events { 81 + lid-close { spawn "notify-send" "The laptop lid is closed!"; } 82 + lid-open { spawn "notify-send" "The laptop lid is open!"; } 65 83 } 66 84 // You can configure outputs by their name, which you can find 67 85 // by running `niri msg outputs` while inside a niri instance. ··· 95 113 // automatically. 96 114 position x=1280 y=0 97 115 } 116 + // Put swaybg inside the overview backdrop. 117 + layer-rule { 118 + match namespace="^wallpaper$" 119 + place-within-backdrop true 120 + } 98 121 // Settings that influence how windows are positioned and sized. 99 122 // Find more information on the wiki: 100 123 // https://yalter.github.io/niri/Configuration:-Layout 101 124 layout { 125 + background-color "transparent" 102 126 // Set gaps around windows in logical pixels. 103 127 gaps 16 104 128 // When to center a column when changing focus, options are: ··· 108 132 // - "on-overflow", focusing a column will center it if it doesn't fit 109 133 // together with the previously focused column. 110 134 center-focused-column "never" 135 + always-center-single-column 111 136 // You can customize the widths that "switch-preset-column-width" (Mod+R) toggles between. 112 137 preset-column-widths { 113 138 // Proportion sets the width as a fraction of the output width, taking gaps into account. ··· 148 173 // - RGB hex: "#rgb", "#rgba", "#rrggbb", "#rrggbbaa" 149 174 // - CSS-like notation: "rgb(255, 127, 0)", rgba(), hsl() and a few others. 150 175 // Color of the ring on the active monitor. 151 - active-color "#7fc8ff" 176 + active-color "#994ae8" 152 177 // Color of the ring on inactive monitors. 153 178 // 154 179 // The focus ring only draws around the active window, so the only place ··· 216 241 // You can also change the shadow color and opacity. 217 242 color "#0007" 218 243 } 219 - // Struts shrink the area occupied by windows, similarly to layer-shell panels. 244 + // Struts shrink the area occupied by windows, similarly to layer-shell panels. 220 245 // You can think of them as a kind of outer gaps. They are set in logical pixels. 221 246 // Left and right struts will cause the next window to the side to always be visible. 222 247 // Top and bottom struts will simply add outer gaps in addition to the area occupied by 223 248 // layer-shell panels and regular gaps. 224 249 /-struts { 225 - left 64 226 - right 64 227 - top 64 228 - bottom 64 250 + left 4 251 + right 4 252 + top 4 253 + bottom 4 254 + } 255 + tab-indicator { 256 + hide-when-single-tab 257 + place-within-column 258 + position "right" 259 + active-color "cyan" 260 + inactive-color "magenta" 261 + width 3 229 262 } 263 + empty-workspace-above-first 230 264 } 231 265 // Add lines like this to spawn processes at startup. 232 266 // Note that running niri as a session supports xdg-desktop-autostart, ··· 235 269 // This line starts waybar, a commonly used bar for Wayland compositors. 236 270 spawn-at-startup "ghostty" 237 271 spawn-at-startup "xfce4-panel" 272 + spawn-at-startup "xfce4-power-manager" 273 + spawn-at-startup "blueman-applet" 274 + spawn-at-startup "nm-applet" 275 + spawn-sh-at-startup "swaybg -i ~/.background.jpg" 238 276 // To run a shell command (with variables, pipes, etc.), use spawn-sh-at-startup: 239 277 // spawn-sh-at-startup "qs -c ~/source/qs/MyAwesomeShell" 240 278 hotkey-overlay { ··· 257 295 // The wiki explains how to configure individual animations: 258 296 // https://yalter.github.io/niri/Configuration:-Animations 259 297 animations { 260 - // Uncomment to turn off all animations. 298 + // Uncomment to turn off all animations. 299 + // You can also put "off" into each individual animation to disable it. 261 300 // off 262 - 263 301 // Slow down all animations by this factor. Values below 1 speed them up instead. 264 - // slowdown 3.0 265 - 302 + slowdown 1.5 303 + // Individual animations. 304 + workspace-switch { 305 + spring damping-ratio=1.0 stiffness=1000 epsilon=0.0001 306 + } 307 + window-open { 308 + duration-ms 150 309 + curve "ease-out-expo" 310 + } 311 + window-close { 312 + duration-ms 150 313 + curve "ease-out-quad" 314 + } 315 + horizontal-view-movement { 316 + spring damping-ratio=1.0 stiffness=800 epsilon=0.0001 317 + } 318 + window-movement { 319 + spring damping-ratio=1.0 stiffness=800 epsilon=0.0001 320 + } 321 + window-resize { 322 + spring damping-ratio=1.0 stiffness=800 epsilon=0.0001 323 + } 324 + config-notification-open-close { 325 + spring damping-ratio=0.6 stiffness=1000 epsilon=0.001 326 + } 327 + screenshot-ui-open { 328 + duration-ms 200 329 + curve "ease-out-quad" 330 + } 331 + overview-open-close { 332 + spring damping-ratio=1.0 stiffness=800 epsilon=0.0001 333 + } 266 334 } 267 335 // Window rules let you adjust behavior for individual windows. 268 336 // Find more information on the wiki: ··· 297 365 } 298 366 // Example: enable rounded corners for all windows. 299 367 // (This example rule is commented out with a "/-" in front.) 300 - /-window-rule { 301 - geometry-corner-radius 12 302 - clip-to-geometry true 368 + window-rule { 369 + geometry-corner-radius 12 370 + clip-to-geometry true 371 + } 372 + overview { 373 + backdrop-color "#663399" 303 374 } 304 375 binds { 305 376 // Keys consist of modifiers separated by + signs, followed by an XKB key name ··· 323 394 Mod+A hotkey-overlay-title="Launch: xfce4-appfinder" { 324 395 spawn "xfce4-appfinder" 325 396 } 326 - Mod+P hotkey-overlay-title="Settings: xfce4-settings" { 397 + Mod+S hotkey-overlay-title="Settings: xfce4-settings" { 327 398 spawn "xfce4-settings-manager" 328 399 } 329 400 // Super+Alt+L hotkey-overlay-title="Lock the Screen: swaylock" { spawn "swaylock"; } ··· 753 824 } 754 825 // Powers off the monitors. To turn them back on, do any input like 755 826 // moving the mouse or pressing any other key. 756 - Mod+Shift+P { 827 + Mod+Alt+P { 757 828 power-off-monitors 758 829 } 759 830 }
+2 -2
modules/vic/dots/config/nvim/lua/plugins/tinted.lua
··· 3 3 "tinted-theming/tinted-vim", 4 4 config = function() 5 5 require("tinted-vim") 6 - vim.cmd.colorscheme("base16-solarized-light") 7 - -- vim.cmd.colorscheme('base24-rebecca') 6 + -- vim.cmd.colorscheme("base16-solarized-light") 7 + vim.cmd.colorscheme("base24-rebecca") 8 8 end, 9 9 }, 10 10 }
+2
modules/vic/git.nix
··· 55 55 ".aider*" 56 56 ".crush*" 57 57 "CRUSH.md" 58 + "GEMINI.md" 59 + "CLAUDE.md" 58 60 ]; 59 61 includes = [ ]; 60 62 # { path = "${DOTS}/git/something"; }