- #!/bin/bash
 
- if [ $(ps aux | grep -v grep | grep -c "urxvt -name urxvtq") -eq 0 ]; then
 
- 	urxvt -name urxvtq -geometry 200x24 &
 
- 	xdotool windowactivate --sync $(xdotool search -sync --onlyvisible --classname urxvtq)
 
- elif xdotool search --onlyvisible --classname urxvtq &> /dev/null; then
 
- 	xdotool windowunmap $(xdotool search -sync --classname urxvtq)
 
- else
 
- 	xdotool windowmap --sync $(xdotool search -sync --classname urxvtq)
 
- 	xdotool windowactivate --sync $(xdotool search -sync --classname urxvtq)
 
- fi
 
 
  |