From d0383441d1da2998e1757b663264e866a9747722 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Mon, 13 Jul 2026 16:31:09 -0400 Subject: toggle-qs-hyprview checks/restarts service b4 toggle hyprview Signed-off-by: Don Williams On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/configs/Keybinds.conf modified: config/hypr/lua/keybinds.lua new file: config/hypr/scripts/toggle-qs-hyprview.sh --- config/hypr/scripts/toggle-qs-hyprview.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 config/hypr/scripts/toggle-qs-hyprview.sh (limited to 'config/hypr/scripts') diff --git a/config/hypr/scripts/toggle-qs-hyprview.sh b/config/hypr/scripts/toggle-qs-hyprview.sh new file mode 100755 index 00000000..4f00762e --- /dev/null +++ b/config/hypr/scripts/toggle-qs-hyprview.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +layout="${1:-smartgrid}" +config_name="qs-hyprview" +config_path="${XDG_CONFIG_HOME:-$HOME/.config}/quickshell/${config_name}" + +if ! pgrep -u "${UID}" -f "qs .* -p ${config_path}($| )" >/dev/null 2>&1; then + qs --log-rules "qt.qpa.wayland.textinput.warning=false" -p "${config_path}" >/dev/null 2>&1 & + sleep 0.2 +fi + +if ! qs -c "${config_name}" ipc call expose toggle "${layout}" >/dev/null 2>&1; then + sleep 0.3 + qs -c "${config_name}" ipc call expose toggle "${layout}" +fi -- cgit v1.2.3