aboutsummaryrefslogtreecommitdiff
path: root/Heads-Up-Display
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-01-07 14:41:21 +0200
committersrdusr <trevorgray@srdusr.com>2023-01-07 14:41:21 +0200
commit556f87e527b97047eb8b13e65dff2eb736662ded (patch)
treef60563641383fb4c1595d7acff6f1cfce0989046 /Heads-Up-Display
parenta169838f2b1852bfd6feb38970d9324650d93b74 (diff)
parent94778c70b8a4396fbee25d7653fa0830803b6d32 (diff)
downloaddotfiles-556f87e527b97047eb8b13e65dff2eb736662ded.tar.gz
dotfiles-556f87e527b97047eb8b13e65dff2eb736662ded.zip
Sync files
Diffstat (limited to '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..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
+