From 390c652062f485bb0ab8fa10d000e18a1294533d Mon Sep 17 00:00:00 2001 From: srdusr Date: Thu, 24 Nov 2022 23:45:04 +0200 Subject: Added Heads-Up-Display --- Heads-Up-Display | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Heads-Up-Display (limited to 'Heads-Up-Display') 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 + -- cgit v1.2.3