1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash # kill any running instances if they exist eww kill # start a bar for each monitor monitors=$(wlr-randr | grep "^[^ ]" | awk '{ print$1 }' | wc -l) for ((i = 0 ; i < $monitors ; i++)); do eww open bar${i} done