summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 13:16:17 -0700
committerDavid Luevano Alvarado <55825613+luevano@users.noreply.github.com>2020-12-20 13:16:17 -0700
commit6fe0dfc5fe085eddcc9deabfd78e280d1afc113f (patch)
tree7b907ce3d55db39bc2dfd85b0a5cc52aae878ee6 /.local
parent274c4c187f199d1c9dc59793f99e50d2d50f01a9 (diff)
More options
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/statusbar/polybar_panel14
1 files changed, 13 insertions, 1 deletions
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 &