Limits on values
This commit is contained in:
parent
6aea2e7bdf
commit
317bdc5ff2
1 changed files with 24 additions and 12 deletions
36
wms_value.sh
36
wms_value.sh
|
@ -14,35 +14,47 @@ wms_revalue.sh [ -m, -M ]
|
|||
|
||||
mp=$(atomx WM_MP $RID) # tiling master area percent from atom
|
||||
master_inc() {
|
||||
atomx WM_MP=$((mp + 5)) $RID
|
||||
wms_usher.sh -t
|
||||
if [ $mp -le 80 ]; then
|
||||
atomx WM_MP=$((mp + 5)) $RID
|
||||
wms_usher.sh -t
|
||||
fi
|
||||
} # 5% + calculation
|
||||
|
||||
master_dec() {
|
||||
atomx WM_MP=$((mp - 5)) $RID
|
||||
wms_usher.sh -t
|
||||
if [ $mp -ge 20 ]; then
|
||||
atomx WM_MP=$((mp - 5)) $RID
|
||||
wms_usher.sh -t
|
||||
fi
|
||||
} # 5% - calculation
|
||||
|
||||
wp=$(atomx WM_WP $RID) # windows percent size from atom
|
||||
windowperc_inc() {
|
||||
atomx WM_WP=$((wp + 5)) $RID
|
||||
wms_usher.sh -w
|
||||
if [ $wp -le 90 ]; then
|
||||
atomx WM_WP=$((wp + 5)) $RID
|
||||
wms_usher.sh -w
|
||||
fi
|
||||
} # 5% + calculation
|
||||
|
||||
windowperc_dec() {
|
||||
atomx WM_WP=$((wp -5)) $RID
|
||||
wms_usher.sh -w
|
||||
if [ $wp -ge 60 ]; then
|
||||
atomx WM_WP=$((wp -5)) $RID
|
||||
wms_usher.sh -w
|
||||
fi
|
||||
} # 5% - calculation
|
||||
|
||||
gap=$(atomx WM_GAP $RID)
|
||||
gap_inc() {
|
||||
atomx WM_GAP=$((gap + 2)) $RID
|
||||
wms_usher.sh -t
|
||||
if [ $gap -le 50 ]; then
|
||||
atomx WM_GAP=$((gap + 2)) $RID
|
||||
wms_usher.sh -t
|
||||
fi
|
||||
} # 5 + pixels gaps
|
||||
|
||||
gap_dec() {
|
||||
atomx WM_GAP=$((gap - 2)) $RID
|
||||
wms_usher.sh -t
|
||||
if [ $gap -ge 2 ]; then
|
||||
atomx WM_GAP=$((gap - 2)) $RID
|
||||
wms_usher.sh -t
|
||||
fi
|
||||
} # 5 - pixels gaps
|
||||
|
||||
if [ -n "$FLAG" ]; then
|
||||
|
|
Loading…
Reference in a new issue