diff options
Diffstat (limited to 'config')
| -rwxr-xr-x | config/hypr/scripts/Dock.sh | 3 | ||||
| -rwxr-xr-x | config/hypr/scripts/RofiLauncher.sh | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/config/hypr/scripts/Dock.sh b/config/hypr/scripts/Dock.sh index c919d573..6242d002 100755 --- a/config/hypr/scripts/Dock.sh +++ b/config/hypr/scripts/Dock.sh @@ -7,6 +7,7 @@ # ================================================== # nwg-dock-hyprland launcher and toggle script +SCRIPTSDIR="${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts" DOCK_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nwg-dock-hyprland" # Ensure dock configuration and wallust directory exist @@ -36,7 +37,7 @@ start_dock() { # -g "kitty-dropterm" : ignores dropdown terminal class # -c : launcher button command (rofi menu) # (no -d : no auto-hide) - local launcher_cmd="pkill rofi || rofi -show drun -modi drun,filebrowser,run,window" + local launcher_cmd="${SCRIPTSDIR}/RofiLauncher.sh" nwg-dock-hyprland -p bottom -x -i 32 -g "kitty-dropterm" -c "$launcher_cmd" >/dev/null 2>&1 & } diff --git a/config/hypr/scripts/RofiLauncher.sh b/config/hypr/scripts/RofiLauncher.sh new file mode 100755 index 00000000..03598da4 --- /dev/null +++ b/config/hypr/scripts/RofiLauncher.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# ================================================== +# KoolDots (2026) +# Project URL: https://github.com/LinuxBeginnings +# License: GNU GPLv3 +# SPDX-License-Identifier: GPL-3.0-or-later +# ================================================== +# Rofi application launcher toggle script + +if pidof rofi >/dev/null 2>&1; then + pkill -x rofi 2>/dev/null || pkill rofi 2>/dev/null || true + exit 0 +fi + +SCRIPTSDIR="${XDG_CONFIG_HOME:-$HOME/.config}/hypr/scripts" +if [ -x "$SCRIPTSDIR/RofiFocusedWallpaperLink.sh" ]; then + "$SCRIPTSDIR/RofiFocusedWallpaperLink.sh" >/dev/null 2>&1 || true +fi + +exec rofi -show drun -modi drun,filebrowser,run,window |
