useless gaps to play
This commit is contained in:
parent
79acb0f64b
commit
b69d057ca8
2 changed files with 30 additions and 0 deletions
BIN
art/rootwm.png
Normal file
BIN
art/rootwm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
30
rwm_gaps.sh
Executable file
30
rwm_gaps.sh
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
## gaps for tiling arrangement? NFW! ##
|
||||
## I made this script just for compromise ##
|
||||
## It made me so sick that I preferred to segregate the calculation from rwm_arrangement.sh ##
|
||||
## If it is of interest to you, forgive me and please add it. ##
|
||||
## Also this is a dumb way to do it. The implementation in rwm_arrangement.sh is very different ##
|
||||
|
||||
|
||||
FLAG=$1
|
||||
GAPS=$2 # gaps value. can also be: GAPS=$(atomx WM_GAPS $RID) or just GAPS=some_value
|
||||
|
||||
RID=$(lsw -r) # root window id
|
||||
MV=$GAPS # move value
|
||||
RS=$((GAPS * 2)) # resize value
|
||||
|
||||
if [ "$GAPS" -ge 1 ]; then # if gaps is greater than zero
|
||||
for w in $(lsw); do
|
||||
case $FLAG in
|
||||
-i) # increase gaps
|
||||
wmv $MV $MV $w # move window
|
||||
wrs -$RS -$RS $w # resize window
|
||||
;;
|
||||
-d) # decrease gaps
|
||||
wmv -$MV -$MV $w
|
||||
wrs $RS $RS $w
|
||||
;;
|
||||
esac
|
||||
done
|
||||
fi
|
Loading…
Reference in a new issue