aboutsummaryrefslogtreecommitdiff
path: root/gruake
diff options
context:
space:
mode:
authorGuillermo Ramos2022-01-20 10:33:35 +0100
committerGuillermo Ramos2022-01-20 10:33:47 +0100
commita078f36dd0201cd46b124ba352e2c6d64a414b9c (patch)
tree0a3251e43a0d22dbfe458271714f1f8400ca34ad /gruake
parent14ed31a1ef91d69b9c113d6c67d05c30c13bd298 (diff)
downloadcli-a078f36dd0201cd46b124ba352e2c6d64a414b9c.tar.gz
New util: gruake
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