diff options
Diffstat (limited to 'dotfiles/hyprland')
| -rw-r--r-- | dotfiles/hyprland/.config/hypr/hyprland.conf | 3 | ||||
| -rw-r--r-- | dotfiles/hyprland/.config/pypr/config.toml (renamed from dotfiles/hyprland/.config/hypr/pyprland.toml) | 0 | ||||
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/hyprland-plugins-setup | 61 |
3 files changed, 62 insertions, 2 deletions
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf index c9c3999..3abf43f 100644 --- a/dotfiles/hyprland/.config/hypr/hyprland.conf +++ b/dotfiles/hyprland/.config/hypr/hyprland.conf @@ -17,7 +17,7 @@ exec-once = systemctl --user start xdg-desktop-portal-hyprland xdg-desktop-porta # Core services exec-once = /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh exec-once = dunst > ~/.local/var/log/dunst-$(date +%Y-%m-%d-%H%M%S).log 2>&1 -exec-once = hyprpm -n update && sleep 1 && hyprctl dismissnotify -1 +exec-once = hyprland-plugins-setup && sleep 1 && hyprctl dismissnotify -1 # Desktop appearance (after portal is ready) exec-once = swww-daemon && sleep 1 && swww img ~/pictures/wallpaper/trondheim-norway.jpg @@ -172,7 +172,6 @@ $mod = SUPER bind = $mod, T, exec, foot bind = $mod, E, exec, emacsclient -c -a "" || emacs bind = $mod, W, exec, $BROWSER -bind = $mod, P, exec, fuzzel bind = $mod, F, exec, nautilus # From sxhkdrc diff --git a/dotfiles/hyprland/.config/hypr/pyprland.toml b/dotfiles/hyprland/.config/pypr/config.toml index e496cd9..e496cd9 100644 --- a/dotfiles/hyprland/.config/hypr/pyprland.toml +++ b/dotfiles/hyprland/.config/pypr/config.toml diff --git a/dotfiles/hyprland/.local/bin/hyprland-plugins-setup b/dotfiles/hyprland/.local/bin/hyprland-plugins-setup new file mode 100755 index 0000000..f0181c8 --- /dev/null +++ b/dotfiles/hyprland/.local/bin/hyprland-plugins-setup @@ -0,0 +1,61 @@ +#!/bin/bash +# hyprland-plugins-setup - Install Hyprland plugins on first login +# Called from hyprland.conf exec-once + +LOGFILE="$HOME/.local/var/log/hyprland-plugins-setup.log" +mkdir -p "$(dirname "$LOGFILE")" + +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 + if hyprpm list | grep -q "enabled: .*true"; then + log "Plugins already installed and enabled, skipping" + exit 0 + fi +fi + +log "Starting Hyprland plugin setup" + +# Add hyprland-plugins repository +log "Adding hyprland-plugins repository..." +if hyprpm add https://github.com/hyprwm/hyprland-plugins 2>&1 | tee -a "$LOGFILE"; then + log "hyprland-plugins repository added" +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 + +# Add hy3 repository +log "Adding hy3 repository..." +if hyprpm add https://github.com/outfoxxed/hy3 2>&1 | tee -a "$LOGFILE"; then + log "hy3 repository added" +else + log "Failed to add hy3 repository" +fi + +# Enable hy3 +log "Enabling hy3..." +if hyprpm enable hy3 2>&1 | tee -a "$LOGFILE"; then + log "hy3 enabled" +else + log "Failed to enable hy3" +fi + +# Reload plugins into Hyprland +log "Reloading plugins..." +hyprpm reload 2>&1 | tee -a "$LOGFILE" + +log "Plugin setup complete" +notify-send "Hyprland Plugins" "Plugin setup complete" -t 3000 |
