diff options
| author | Craig Jennings <c@cjennings.net> | 2026-03-07 11:28:50 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-03-07 11:28:50 -0600 |
| commit | 3285f944b32f4b362abb00630daa86078b99dc9d (patch) | |
| tree | 853513acb32690041e09a0210e2d0968b1d4dd49 /dotfiles/hyprland/.local/bin/hyprland-plugins-setup | |
| parent | 2d75b3ea4dc6d58b476e9ca435639cf5a6dacd60 (diff) | |
feat(hyprland): update plugins for 0.54, add scratchpad hide_delay
Remove hyprscrolling from plugin setup (now in core). Add hide_delay
workaround for pyprland bug #211 to all scratchpads.
Diffstat (limited to 'dotfiles/hyprland/.local/bin/hyprland-plugins-setup')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/hyprland-plugins-setup | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/dotfiles/hyprland/.local/bin/hyprland-plugins-setup b/dotfiles/hyprland/.local/bin/hyprland-plugins-setup index 77a01d1..29619c7 100755 --- a/dotfiles/hyprland/.local/bin/hyprland-plugins-setup +++ b/dotfiles/hyprland/.local/bin/hyprland-plugins-setup @@ -1,6 +1,9 @@ #!/bin/bash # hyprland-plugins-setup - Install Hyprland plugins on first login # Called from hyprland.conf exec-once +# +# As of Hyprland 0.54, hyprscrolling is in core. Only xtra-dispatchers +# needs to be installed via hyprpm. LOGFILE="$HOME/.local/var/log/hyprland-plugins-setup.log" mkdir -p "$(dirname "$LOGFILE")" @@ -9,8 +12,8 @@ log() { echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOGFILE" } -# Check if plugins already installed and enabled -if hyprpm list 2>/dev/null | grep -q "hyprscrolling"; then +# Check if xtra-dispatchers already installed and enabled +if hyprpm list 2>/dev/null | grep -q "xtra-dispatchers"; then if hyprpm list | grep -q "enabled: .*true"; then log "Plugins already installed, loading into session" hyprpm reload 2>&1 | tee -a "$LOGFILE" @@ -28,15 +31,13 @@ else log "Failed to add hyprland-plugins repository" fi -# Enable plugins from hyprland-plugins -for plugin in hyprscrolling xtra-dispatchers; do - log "Enabling $plugin..." - if hyprpm enable "$plugin" 2>&1 | tee -a "$LOGFILE"; then - log "$plugin enabled" - else - log "Failed to enable $plugin" - fi -done +# Enable xtra-dispatchers (provides plugin:xtd:bringallfrom used by focus-restore) +log "Enabling xtra-dispatchers..." +if hyprpm enable xtra-dispatchers 2>&1 | tee -a "$LOGFILE"; then + log "xtra-dispatchers enabled" +else + log "Failed to enable xtra-dispatchers" +fi # Reload plugins into Hyprland log "Reloading plugins..." |
