monitor swapping scripts

This commit is contained in:
2025-12-20 22:56:25 -06:00
parent 924eecc497
commit aa2cdc134e
5 changed files with 19 additions and 16 deletions
@@ -1,8 +0,0 @@
#!/bin/sh
dir=$1
config=$(hyprctl monitors -j | jq -r '.[] | select(.focused) | "\(.name),transform,'$dir'"')
echo $config
hyprctl keyword monitor $config
@@ -1,3 +0,0 @@
#!/bin/sh
dir=$1
echo "current monitor $1"
@@ -0,0 +1,3 @@
#!/bin/sh
monitor=$(hyprctl monitors -j | jq -r 'first(.[] | select(.focused == false) | .name)')
hyprctl dispatch movecurrentworkspacetomonitor $monitor
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
monitor=$(hyprctl monitors -j | jq -r 'first(.[] | select(.focused == false) | .name)')
hyprctl dispatch focusmonitor $monitor