Improve portability and add lid close setup
- 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
This commit is contained in:
+9
-1
@@ -14,7 +14,15 @@ ln -sf "$(pwd)/niri/config.kdl" ~/.config/niri/config.kdl
|
|||||||
ln -sf "$(pwd)/waybar/config.jsonc" ~/.config/waybar/config.jsonc
|
ln -sf "$(pwd)/waybar/config.jsonc" ~/.config/waybar/config.jsonc
|
||||||
ln -sf "$(pwd)/waybar/style.css" ~/.config/waybar/style.css
|
ln -sf "$(pwd)/waybar/style.css" ~/.config/waybar/style.css
|
||||||
ln -sf "$(pwd)/wofi/config" ~/.config/wofi/config
|
ln -sf "$(pwd)/wofi/config" ~/.config/wofi/config
|
||||||
|
ln -sf "$(pwd)/wofi/style.css" ~/.config/wofi/style.css
|
||||||
ln -sf "$(pwd)/mako/config" ~/.config/mako/config
|
ln -sf "$(pwd)/mako/config" ~/.config/mako/config
|
||||||
ln -sf "$(pwd)/alacritty/alacritty.toml" ~/.config/alacritty/alacritty.toml
|
ln -sf "$(pwd)/alacritty/alacritty.toml" ~/.config/alacritty/alacritty.toml
|
||||||
|
|
||||||
echo "==> Done. Start Niri with: niri"
|
echo "==> Installing scripts"
|
||||||
|
mkdir -p ~/.local/bin
|
||||||
|
ln -sf "$(pwd)/scripts/powermenu.sh" ~/.local/bin/powermenu
|
||||||
|
|
||||||
|
echo "==> Enabling systemd user services"
|
||||||
|
mkdir -p ~/.config/systemd/user
|
||||||
|
|
||||||
|
echo "==> Done. Start Niri with: niri-session"
|
||||||
|
|||||||
+2
-1
@@ -17,6 +17,7 @@ spawn-at-startup "mako"
|
|||||||
spawn-at-startup "swww-daemon"
|
spawn-at-startup "swww-daemon"
|
||||||
spawn-at-startup "nm-applet" "--indicator"
|
spawn-at-startup "nm-applet" "--indicator"
|
||||||
spawn-at-startup "polkit-gnome-authentication-agent-1"
|
spawn-at-startup "polkit-gnome-authentication-agent-1"
|
||||||
|
spawn-at-startup "swayidle" "-w" "before-sleep" "swaylock -f -c 000000"
|
||||||
|
|
||||||
binds {
|
binds {
|
||||||
Mod+Q repeat=false { close-window; }
|
Mod+Q repeat=false { close-window; }
|
||||||
@@ -39,7 +40,7 @@ binds {
|
|||||||
Print { spawn-sh "grim -g \"$(slurp)\" ~/Pictures/screenshot-$(date +%s).png"; }
|
Print { spawn-sh "grim -g \"$(slurp)\" ~/Pictures/screenshot-$(date +%s).png"; }
|
||||||
|
|
||||||
Mod+Shift+E { spawn "swaylock" "-f" "-c" "000000"; }
|
Mod+Shift+E { spawn "swaylock" "-f" "-c" "000000"; }
|
||||||
Mod+Shift+P { spawn "bash" "/home/alex/Documents/dotfiles/scripts/powermenu.sh"; }
|
Mod+Shift+P { spawn "powermenu"; }
|
||||||
Mod+Shift+X { quit; }
|
Mod+Shift+X { quit; }
|
||||||
|
|
||||||
XF86AudioRaiseVolume allow-when-locked=true { spawn "pamixer" "-i" "5"; }
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "pamixer" "-i" "5"; }
|
||||||
|
|||||||
+1
-1
@@ -2,4 +2,4 @@ show=drun
|
|||||||
width=700
|
width=700
|
||||||
height=450
|
height=450
|
||||||
prompt=Run:
|
prompt=Run:
|
||||||
style=/home/alex/Documents/dotfiles/wofi/style.css
|
style=~/.config/wofi/style.css
|
||||||
|
|||||||
Reference in New Issue
Block a user