50a189f08e
- Replace hardcoded sleep hook with swayidle in niri autostart - Replace hardcoded dotfiles path in powermenu bind with plain 'powermenu' - Replace hardcoded wofi style path with XDG path (~/.config/wofi/style.css) - Update install.sh to symlink powermenu to ~/.local/bin and wofi/style.css - Switch display manager from GDM to greetd with tuigreet - Add logind drop-in for lid close: suspend on battery, lock on AC
53 lines
1.5 KiB
KDL
53 lines
1.5 KiB
KDL
layout {
|
|
gaps 10
|
|
|
|
border {
|
|
width 2
|
|
active-color "#81a2be"
|
|
inactive-color "#373b41"
|
|
}
|
|
|
|
focus-ring {
|
|
width 4
|
|
}
|
|
}
|
|
|
|
spawn-at-startup "waybar"
|
|
spawn-at-startup "mako"
|
|
spawn-at-startup "swww-daemon"
|
|
spawn-at-startup "nm-applet" "--indicator"
|
|
spawn-at-startup "polkit-gnome-authentication-agent-1"
|
|
spawn-at-startup "swayidle" "-w" "before-sleep" "swaylock -f -c 000000"
|
|
|
|
binds {
|
|
Mod+Q repeat=false { close-window; }
|
|
Mod+F { fullscreen-window; }
|
|
|
|
Mod+Return { spawn "alacritty"; }
|
|
Mod+D { spawn "wofi" "--show" "drun"; }
|
|
Mod+E { spawn "thunar"; }
|
|
|
|
Mod+H { focus-column-left; }
|
|
Mod+L { focus-column-right; }
|
|
Mod+J { focus-window-down; }
|
|
Mod+K { focus-window-up; }
|
|
|
|
Mod+Shift+H { move-column-left; }
|
|
Mod+Shift+L { move-column-right; }
|
|
Mod+Shift+J { move-window-down; }
|
|
Mod+Shift+K { move-window-up; }
|
|
|
|
Print { spawn-sh "grim -g \"$(slurp)\" ~/Pictures/screenshot-$(date +%s).png"; }
|
|
|
|
Mod+Shift+E { spawn "swaylock" "-f" "-c" "000000"; }
|
|
Mod+Shift+P { spawn "powermenu"; }
|
|
Mod+Shift+X { quit; }
|
|
|
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "pamixer" "-i" "5"; }
|
|
XF86AudioLowerVolume allow-when-locked=true { spawn "pamixer" "-d" "5"; }
|
|
XF86AudioMute allow-when-locked=true { spawn "pamixer" "-t"; }
|
|
|
|
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "+10%"; }
|
|
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "10%-"; }
|
|
}
|