Compare commits
2 Commits
b8b265b8c2
...
1c7e553add
Author | SHA1 | Date |
---|---|---|
|
1c7e553add | |
|
8d0d94a854 |
.config
i3/scripts
polybar/scripts
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
MONITORS='0 9'
|
||||
MONITORS='1 4'
|
||||
BRIGHT=`zenity --entry --width 40 --text="Brightness:"`
|
||||
|
||||
for m in ${MONITORS}; do
|
||||
|
|
|
@ -3,7 +3,7 @@ source ~/.config/polybar/.env
|
|||
names=("chostybottombar" "chostytopbar")
|
||||
killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
monitor=$(xrandr --query | grep " connected" | grep "primary" | cut -d" " -f1)
|
||||
monitor=$(xrandr --query | grep " connected" | cut -d" " -f1 | head -1)
|
||||
for name in ${names[@]}; do
|
||||
MONITOR=${monitor} polybar -q --reload ${name} &
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue