aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-11-24 23:45:04 +0200
committersrdusr <trevorgray@srdusr.com>2022-11-24 23:45:04 +0200
commit390c652062f485bb0ab8fa10d000e18a1294533d (patch)
tree55164021231b74d1c9d847518d7e15ca15193f3d
downloaddotfiles-390c652062f485bb0ab8fa10d000e18a1294533d.tar.gz
dotfiles-390c652062f485bb0ab8fa10d000e18a1294533d.zip
Added Heads-Up-Display
-rwxr-xr-xHeads-Up-Display13
1 files changed, 13 insertions, 0 deletions
diff --git a/Heads-Up-Display b/Heads-Up-Display
new file mode 100755
index 0000000..cac8681
--- /dev/null
+++ b/Heads-Up-Display
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+id=$(xdotool search --class Heads-Up-Display);
+if [ -z "$id" ]; then
+ st -c Heads-Up-Display -e tmux attach -t HUD || tmux new -s HUD;
+else
+ if [ ! -f /tmp/hide_hud ]; then
+ touch /tmp/hide_hud && xdo hide "$id"
+ elif [ -f /tmp/hide_hud ]; then
+ rm /tmp/hide_hud && xdo show "$id"
+ fi
+fi
+