From bd1551bbb8883da692645b26b1577c4f45e38689 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 1 Feb 2026 15:39:51 -0600 Subject: feat(hyprland): install plugins on first login via setup script hyprpm requires running Hyprland to determine version for plugin compilation. Move plugin installation from archsetup to a first-login script (hyprland-plugins-setup) that runs via exec-once. Script checks if plugins are already installed and skips if so. Update validation to check for setup script presence instead of enabled plugins. --- archsetup | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'archsetup') diff --git a/archsetup b/archsetup index ab00629..38ae597 100755 --- a/archsetup +++ b/archsetup @@ -1424,31 +1424,11 @@ hyprland() { aur_install nautilus-open-any-terminal # right-click "open in terminal" with configurable terminal # Hyprland Plugins (via hyprpm) - # Plugins require compilation, so cmake must be installed first + # Plugins are installed on first login via hyprland-plugins-setup script + # (hyprpm requires running Hyprland to determine version for compilation) action="Hyprland Plugins" && display "subtitle" "$action" pacman_install cmake # required for plugin compilation - # Add plugin repositories and enable plugins (runs as user) - action="installing hyprland-plugins repository" && display "task" "$action" - (sudo -u "$username" hyprpm add https://github.com/hyprwm/hyprland-plugins --notify >> "$logfile" 2>&1) || \ - error "warn" "$action" "$?" - - action="enabling hyprscrolling plugin" && display "task" "$action" - (sudo -u "$username" hyprpm enable hyprscrolling >> "$logfile" 2>&1) || \ - error "warn" "$action" "$?" - - action="enabling xtra-dispatchers plugin" && display "task" "$action" - (sudo -u "$username" hyprpm enable xtra-dispatchers >> "$logfile" 2>&1) || \ - error "warn" "$action" "$?" - - action="installing hy3 repository" && display "task" "$action" - (sudo -u "$username" hyprpm add https://github.com/outfoxxed/hy3 --notify >> "$logfile" 2>&1) || \ - error "warn" "$action" "$?" - - action="enabling hy3 plugin" && display "task" "$action" - (sudo -u "$username" hyprpm enable hy3 >> "$logfile" 2>&1) || \ - error "warn" "$action" "$?" - # Pacman hook to rebuild plugins after Hyprland updates # Prevents plugin version mismatch that causes plugins to fail loading action="creating hyprpm pacman hook" && display "task" "$action" -- cgit v1.2.3