blob: f7b8d64ddd4b543c8570ee0c897cef93e89198f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
printhelp () {
printf "hyprswap.sh: swap two one window columns in hyprscrolling\n"
printf "\t-l) swap focused column to the left\n"
printf "\t-r) swap focused column to the right\n"
exit 1
}
while getopts "lr" o; do case "${o}" in
l) DIR='l' ;;
r) DIR='r' ;;
*) printhelp ;;
esac done
case "$DIR" in
'l')
hyprctl dispatch layoutmsg movewindowto 'l'
hyprctl dispatch layoutmsg focus 'd'
hyprctl dispatch layoutmsg promote
hyprctl dispatch layoutmsg focus 'l'
;;
'r')
hyprctl dispatch layoutmsg movewindowto 'r'
hyprctl dispatch layoutmsg promote
hyprctl dispatch layoutmsg focus 'l'
hyprctl dispatch layoutmsg focus 'r'
;;
esac
|