dotfiles

My personal dotfiles
git clone git://pcardensab.com/dotfiles
Log | Files | Refs | Submodules | README

status.sh (446B)


      1 #!/bin/sh
      2 
      3 winid=$(xdotool search --name watch)
      4 visible_winid=$(xdotool search --onlyvisible --name watch)
      5 echo $winid
      6 
      7 
      8 if [ -z "${winid}" ]; then
      9 	nohup st -t watch -e  bash -c 'while true; do watch --interval 60 --chgexit ". ~/.config/shell/functions.sh; wm_status"; echo notify-send "Status changed"; done' >/dev/null 2>/dev/null </dev/null &
     10 else
     11 	if [ -z "${visible_winid}" ]; then
     12 		xdo show "${winid}"
     13 	else 
     14 		xdo hide "${winid}"
     15 	fi
     16 fi