diff options
Diffstat (limited to 'dotfiles')
| -rw-r--r-- | dotfiles/hyprland/.config/pypr/config.toml | 6 | ||||
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/hyprland-plugins-setup | 23 |
2 files changed, 18 insertions, 11 deletions
diff --git a/dotfiles/hyprland/.config/pypr/config.toml b/dotfiles/hyprland/.config/pypr/config.toml index 193f499..bb35aad 100644 --- a/dotfiles/hyprland/.config/pypr/config.toml +++ b/dotfiles/hyprland/.config/pypr/config.toml @@ -25,6 +25,7 @@ class = "foot-term" size = "50% 70%" position = "25% 15%" animation = "fromBottom" +hide_delay = 0.5 [scratchpads.ai-term] command = "foot --app-id foot-ai-term tmux" @@ -32,6 +33,7 @@ class = "foot-ai-term" size = "50% 70%" position = "25% 15%" animation = "fromBottom" +hide_delay = 0.5 [scratchpads.audio] command = "foot --app-id foot-audio pulsemixer" @@ -39,6 +41,7 @@ class = "foot-audio" size = "50% 60%" position = "25% 20%" animation = "fromBottom" +hide_delay = 0.5 [scratchpads.monitor] command = "foot --app-id foot-monitor monitor-dashboard" @@ -46,6 +49,7 @@ class = "foot-monitor" size = "50% 60%" position = "25% 20%" animation = "fromBottom" +hide_delay = 0.5 [scratchpads.music] command = "foot --app-id foot-music ncmpcpp" @@ -53,6 +57,7 @@ class = "foot-music" size = "60% 60%" position = "20% 20%" animation = "fromBottom" +hide_delay = 0.5 [scratchpads.network] command = "foot --app-id foot-network nmtui" @@ -60,3 +65,4 @@ class = "foot-network" size = "50% 60%" position = "25% 20%" animation = "fromBottom" +hide_delay = 0.5 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..." |
