diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-08-28 21:01:04 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:41:57 -0700 |
| commit | 7f380bb7062cf62785e379af6d97f09543add884 (patch) | |
| tree | bb3a56d8ed603c4f62d7eb502825885b07355eaa /config | |
| parent | 52a4303cdd1cbd474d4ff5ee833bb705b8d099df (diff) | |
Fixed nwg-dock-hyprland launcher not running RofiLauncher
Signed-off-by: Don Williams <don.e.williams@gmail.com>
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/scripts/Dock.sh
new file: config/hypr/scripts/RofiLauncher.sh
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 |
