Add script to starts polybars
This commit is contained in:
parent
527df49e55
commit
0ec9cdb4c1
1 changed files with 11 additions and 0 deletions
11
bin/bar
Executable file
11
bin/bar
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
||||
if type "xrandr"; then
|
||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
MONITOR=$m polybar --reload dwm &
|
||||
done
|
||||
else
|
||||
polybar --reload dwm &
|
||||
fi
|
Loading…
Reference in a new issue