diff options
| author | Guillermo Ramos | 2022-01-20 10:33:35 +0100 |
|---|---|---|
| committer | Guillermo Ramos | 2022-01-20 10:33:47 +0100 |
| commit | a078f36dd0201cd46b124ba352e2c6d64a414b9c (patch) | |
| tree | 0a3251e43a0d22dbfe458271714f1f8400ca34ad /gruake | |
| parent | 14ed31a1ef91d69b9c113d6c67d05c30c13bd298 (diff) | |
| download | cli-a078f36dd0201cd46b124ba352e2c6d64a414b9c.tar.gz | |
New util: gruake
Diffstat (limited to 'gruake')
| -rwxr-xr-x | gruake | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |
