mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-06 01:34:22 +00:00
Update monitor setup and switching
This commit is contained in:
@@ -7,4 +7,14 @@ killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
polybar default &
|
||||
|
||||
intern=eDP-1
|
||||
extern=HDMI-1
|
||||
|
||||
if xrandr | grep "$extern disconnected"; then
|
||||
m=$intern
|
||||
else
|
||||
m=$extern
|
||||
fi
|
||||
|
||||
MONITOR=$m polybar default &
|
||||
|
||||
Reference in New Issue
Block a user