summaryrefslogtreecommitdiff
path: root/.local/bin/hyprmove
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-28 13:42:04 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-28 13:42:04 +0100
commit4d13e0ae5991af6a4858afaa98079cb824c02cf0 (patch)
tree90d7595cb1a10878d3c4392fbc02cbf89f20a696 /.local/bin/hyprmove
parent71b674b0f5aafec47c425aa2341b01c1d015d3f8 (diff)
hyprmove, hyprwork: Add scripts for better multimonitor support
Diffstat (limited to '.local/bin/hyprmove')
-rwxr-xr-x.local/bin/hyprmove6
1 files changed, 6 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)'
+)"