mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
14 lines
449 B
Bash
Executable File
14 lines
449 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function handle {
|
|
if [[ ${1:0:12} == "monitoradded" ]]; then
|
|
hyprctl dispatch moveworkspacetomonitor "1 1"
|
|
hyprctl dispatch moveworkspacetomonitor "2 1"
|
|
hyprctl dispatch moveworkspacetomonitor "3 1"
|
|
hyprctl dispatch moveworkspacetomonitor "4 1"
|
|
hyprctl dispatch moveworkspacetomonitor "5 1"
|
|
fi
|
|
}
|
|
|
|
socat - UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock | while read line; do handle $line; done
|