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:
funman300
2026-04-22 16:11:02 -07:00
parent 44e1dc2eee
commit 50a189f08e
3 changed files with 12 additions and 3 deletions
+9 -1
View File
@@ -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/style.css" ~/.config/waybar/style.css
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)/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"