aboutsummaryrefslogtreecommitdiff
path: root/Heads-Up-Display
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-02-10 10:45:33 +0200
committersrdusr <trevorgray@srdusr.com>2023-02-10 10:45:33 +0200
commit4b073028c17697e2254464e2b54678d07489c14e (patch)
treed51b74f38f17b6f36cb75c36610edd5dfbb80dd4 /Heads-Up-Display
parent1d665f3bbc693b9abe13a24d6742b483a3f34160 (diff)
downloaddotfiles-4b073028c17697e2254464e2b54678d07489c14e.tar.gz
dotfiles-4b073028c17697e2254464e2b54678d07489c14e.zip
Clean config, add file header
Diffstat (limited to 'Heads-Up-Display')
-rwxr-xr-xHeads-Up-Display33
1 files changed, 24 insertions, 9 deletions
diff --git a/Heads-Up-Display b/Heads-Up-Display
index d90c7d3..8680123 100755
--- a/Heads-Up-Display
+++ b/Heads-Up-Display
@@ -1,13 +1,28 @@
#!/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
+# Created By: srdusr
+# Created On: Wed 05 Feb 2023 01:24:37 AM CAT
+# Project: bspwm scratchpad (Heads-Up-Display) with tmux session
+
+if id="$(xdo id -N Heads-Up-Display)"
+ then bspc node "$id" -g hidden -f
+ else kitty --class "Heads-Up-Display" -e tmux new-session -A -s HUD -e bash > /dev/null 2>&1 &
fi
+#- - - - - - - - - -
+
+
+### Alternative method
+
+#id=$(xdotool search --class Heads-Up-Display);
+#if [ -z "$id" ]; then
+# #kitty --class "Heads-Up-Display" -e tmux new-session -A -s HUD -e bash > /dev/null 2>&1 &
+# 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
+