wms/rwm_moveresize.sh
rootniformaticaservice 51d458a88b other shit
2023-03-07 10:01:29 -03:00

49 lines
709 B
Bash
Executable file

#!/bin/sh
## move and resize windows ##
FLAG=$1 # option
FW=$(pfw) # focused window
usage() {
echo "usage:
rwm_moveresize.sh [ -r, -l, -d, -u, -w, -W, -h, -H ]
-r) move right
-l) move left
-d) move down
-u) move up
-w) resize width -
-W) resize width +
-h) resize height -
-H) resize height +"
}
case $FLAG in
-r) # rigth
wmv 10 0 $FW
;;
-l) # left
wmv -10 0 $FW
;;
-d) # down
wmv 0 10 $FW
;;
-u) # up
wmv 0 -10 $FW
;;
-w) # width -
wrs -10 0 $FW
;;
-W) # width +
wrs 10 0 $FW
;;
-h) # higth -
wrs 0 -10 $FW
;;
-H) # hight +
wrs 0 10 $FW
;;
*)
usage
;;
esac