This commit is contained in:
Greg Leyda 2022-07-09 11:27:58 -04:00
commit beaf5202ca
37 changed files with 1802 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
path=$HOME/.config/rofi/window-switcher/box.rasi
windows="$(xprop -root _NET_CLIENT_LIST | grep -o '0x' | wc -l )"
if (($windows<8)); then
width=$(($windows*150))
else
width=1200
fi
rofi \
-no-lazy-grab \
-show window \
-theme $path \
-theme-str 'window {width: '$width';}'