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
29 lines
867 B
Bash
Executable File
29 lines
867 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "==> Installing packages"
|
|
sudo pacman -S --needed - < packages.txt
|
|
|
|
echo "==> Creating config directories"
|
|
mkdir -p ~/.config/{niri,waybar,wofi,mako,alacritty}
|
|
|
|
echo "==> Linking configs"
|
|
|
|
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 "==> 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"
|