#!/bin/sh # # Guake-like show-and-hide terminal in a couple of lines of code. # Powered by urxvt+tmux ################################################################################ if pid=$(pgrep -f 'urxvt.*gruake'); then kill $pid else urxvt -name gruake -e sh -c 'tmux new -A -s gruake' fi