summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/hyprmove6
-rwxr-xr-x.local/bin/hyprwork6
2 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/hyprmove b/.local/bin/hyprmove
new file mode 100755
index 0000000..c5ca1c3
--- /dev/null
+++ b/.local/bin/hyprmove
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+chronic hyprctl dispatch movetoworkspace "$(
+ hyprctl -j activeworkspace \
+ | jq --arg n "$1" '.monitorID * 10 + ($n | tonumber)'
+)"
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)'
+)"