Browse Source

Update wm peek to use animations

Instead of updating the padding through a loop, just change the padding and let picom handle the animation
master
Maxime Wack 1 year ago
parent
commit
d050d751e6
1 changed files with 2 additions and 10 deletions
  1. +2
    -10
      .config/bin/wm

+ 2
- 10
.config/bin/wm View File

@@ -89,18 +89,10 @@ peek ()
case $1 in
left|right)
if [ `bspc config -d focused $1_padding` -gt 0 ]; then
start=500
step=-20
end=0
bspc config -d focused $1_padding 0
else
start=0
step=20
end=500
bspc config -d focused $1_padding 500
fi

for pad in `seq $start $step $end`; do
bspc config -d focused $1_padding $pad
done
;;
*) usage;;
esac


Loading…
Cancel
Save