aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/toggle-qs-hyprview.sh15
1 files changed, 15 insertions, 0 deletions
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage