aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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..d90c7d3
--- /dev/null
+++ b/Heads-Up-Display
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+id=$(xdotool search --class Heads-Up-Display);
+if [ -z "$id" ]; then
+ alacritty --class "Heads-Up-Display" -e tmux new-session -A -s HUD -e bash > /dev/null 2>&1 &
+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
+