mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
flakes
This commit is contained in:
commit
beaf5202ca
37 changed files with 1802 additions and 0 deletions
13
home/.config/rofi/window-switcher/window-switcher.sh
Executable file
13
home/.config/rofi/window-switcher/window-switcher.sh
Executable 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';}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue