From 6fe0dfc5fe085eddcc9deabfd78e280d1afc113f Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado <55825613+luevano@users.noreply.github.com> Date: Sun, 20 Dec 2020 13:16:17 -0700 Subject: More options --- .local/bin/statusbar/polybar_panel | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.local/bin/statusbar/polybar_panel') diff --git a/.local/bin/statusbar/polybar_panel b/.local/bin/statusbar/polybar_panel index d3e198c..7e20845 100755 --- a/.local/bin/statusbar/polybar_panel +++ b/.local/bin/statusbar/polybar_panel @@ -11,8 +11,20 @@ bar1=main bar2=second echo "---" | tee -a /tmp/$bar1.log /tmp/$bar2.log -polybar $bar1 >>/tmp/$bar1.log 2>&1 & disown +polybar --reload $bar1 >> /tmp/$bar1.log 2>&1 & disown +polybar --reload $bar2 >> /tmp&$bar2.log 2>&1 & disown +# To display the same bar on multiple monitors. +# if type "xrandr"; then +# for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do +# MONITOR=$m polybar --reload example & +# done +# else +# polybar --reload example & +# fi + +# Taken from another script, this is for when +# a new monitor is connected, I guess? # externo=$(xrandr --query | grep "HDMI1") # if [ ! "$externo" = "*disconnected*" ]; then # MONITOR="HDMI1" polybar --reload $bar2 -c ~/.config/polybar/config >>/tmp/$bar2.log 2>&1 & -- cgit v1.2.3-54-g00ecf