dots

Personal dotfiles
git clone git://git.gormless.xyz/dots.git
Log | Files | Refs

togglebar (243B)


      1 #!/bin/sh
      2 
      3 if test -z "$(pgrep -f lemonbar)"; then 
      4 	bar | sh 2>/dev/null &
      5 	cp "$HOME/etc/cwm/cwmrc-bar" "$HOME/etc/cwm/cwmrc" && pkill -SIGHUP cwm
      6 else
      7 	pkill bar
      8 	cp "$HOME/etc/cwm/cwmrc-nobar" "$HOME/etc/cwm/cwmrc" && pkill -SIGHUP cwm
      9 fi