diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-11-24 23:45:04 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-11-24 23:45:04 +0200 |
| commit | 390c652062f485bb0ab8fa10d000e18a1294533d (patch) | |
| tree | 55164021231b74d1c9d847518d7e15ca15193f3d | |
| download | dotfiles-390c652062f485bb0ab8fa10d000e18a1294533d.tar.gz dotfiles-390c652062f485bb0ab8fa10d000e18a1294533d.zip | |
Added Heads-Up-Display
| -rwxr-xr-x | Heads-Up-Display | 13 |
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 + |
