dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

polybar.sh (379B)


      1 #!/usr/bin/env sh
      2 
      3 # Terminate already running bar instances
      4 killall -q polybar
      5 
      6 # Wait until the processes have been shut down
      7 while pgrep -x polybar >/dev/null; do sleep 1; done
      8 
      9 # Launch polybar
     10 if command -v gsettings &>/dev/null; then
     11   polybar top_$(gsettings get org.gnome.Terminal.Legacy.Settings theme-variant | tr -d "'") &
     12 else
     13   polybar top_light &
     14 fi
     15 polybar bottom