summaryrefslogtreecommitdiff
path: root/launch_waybar.sh
blob: 9a0e04ad5386a1f9daa3e1d437aa0acaeaeda9a3 (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 -B5 'Enabled: yes' | sed '/^\s\s*/d;/^--$/d' | cut -d' ' -f1); do
    waybar -c "$XDG_CONFIG_HOME"/waybar/config-$1-$m &
  done
else
  waybar
fi