aboutsummaryrefslogtreecommitdiff
path: root/gruake
diff options
context:
space:
mode:
Diffstat (limited to 'gruake')
-rwxr-xr-xgruake11
1 files changed, 11 insertions, 0 deletions
diff --git a/gruake b/gruake
new file mode 100755
index 0000000..0f92745
--- /dev/null
+++ b/gruake
@@ -0,0 +1,11 @@
+#!/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