1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh killall waybar if type "wlr-randr"; then for m in $(wlr-randr | grep -B2 'Enabled: yes' | sed '/^\s\s*/d;/^--$/d' | cut -d' ' -f1); do waybar -c "$XDG_CONFIG_HOME"/waybar/config-$1-$m & done else waybar fi