dotfiles/install/lib/hyprland.sh
Claude 6577def1b5
feat(install): add hyprlock, mako, and a rofi power menu
- files/hypr/hyprlock.conf: blurred-screenshot lock with Kanagawa clock,
  date, user label, and rounded password input (green/red on success/fail)
- files/mako/config: Kanagawa Wave notifications, JetBrainsMono Nerd Font,
  per-urgency border colors, critical stays until dismissed
- files/bin/power-menu: rofi-driven Lock/Suspend/Logout/Reboot/Shutdown,
  bound to Super+Shift+E and the Waybar power button
- lib/hyprland.sh: link the three new pieces (hyprlock.conf, mako/config,
  ~/.local/bin/power-menu)
2026-06-09 15:24:32 +00:00

29 lines
986 B
Bash

#!/bin/bash
# Drop in the starter Hyprland config by symlinking from the dotfiles repo.
# Same backup-and-link behavior as the rest of the dotfiles.
link_hyprland_config() {
info "Linking Hyprland config..."
local src="$INSTALL_FILES/hypr"
local dest="$HOME/.config/hypr"
local f
for f in hyprland.conf monitors.conf env.conf input.conf keybinds.conf autostart.conf hyprlock.conf; do
backup_and_link "$src/$f" "$dest/$f"
done
info "Linking Waybar config..."
for f in config.jsonc style.css; do
backup_and_link "$INSTALL_FILES/waybar/$f" "$HOME/.config/waybar/$f"
done
info "Linking Rofi config..."
for f in config.rasi kanagawa.rasi; do
backup_and_link "$INSTALL_FILES/rofi/$f" "$HOME/.config/rofi/$f"
done
info "Linking Mako config..."
backup_and_link "$INSTALL_FILES/mako/config" "$HOME/.config/mako/config"
info "Linking power-menu into ~/.local/bin..."
backup_and_link "$INSTALL_FILES/bin/power-menu" "$HOME/.local/bin/power-menu"
}