From 70ea63cff2b911c98392c35e658d097ef7f53b24 Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Wed, 1 Feb 2023 20:47:11 -0500 Subject: [PATCH] fixed polybar script --- bin/polybar-launch.sh | 4 ++++ gui/i3/config | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/polybar-launch.sh b/bin/polybar-launch.sh index 37a0d57..7522180 100755 --- a/bin/polybar-launch.sh +++ b/bin/polybar-launch.sh @@ -1,5 +1,9 @@ #! /bin/bash +# kills any polybar currently on +killall -q polybar +# wait for termination +while pgrep -x polybar >/dev/null; do sleep 1; done # loads polybar one every monitor if type "xrandr"; then for monitor in $(xrandr --query | grep " connected" | cut -d" " -f1); do diff --git a/gui/i3/config b/gui/i3/config index 9339813..5c1e348 100644 --- a/gui/i3/config +++ b/gui/i3/config @@ -17,7 +17,7 @@ font pango:monospace 8 default_border none -gaps inner 5 +gaps inner 10 smart_gaps on # This font is widely installed, provides lots of unicode glyphs, right-to-left @@ -65,7 +65,7 @@ bindsym $mod+q exec ~/.local/bin/i3lock-blur bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec --no-startup-id dmenu_run -b # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a