summaryrefslogtreecommitdiff
path: root/launch_waybar.sh
blob: 1803ada4256b419c3bee40e745ddf763336d54f9 (plain)
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