summaryrefslogtreecommitdiff
path: root/.local/bin/hyprwork
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/hyprwork')
-rwxr-xr-x.local/bin/hyprwork6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/hyprwork b/.local/bin/hyprwork
new file mode 100755
index 0000000..89a7ba0
--- /dev/null
+++ b/.local/bin/hyprwork
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+chronic hyprctl dispatch workspace "$(
+ hyprctl -j activeworkspace \
+ | jq --arg n "$1" '.monitorID * 10 + ($n | tonumber)'
+)"