aboutsummaryrefslogtreecommitdiff
path: root/heads-up-display
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-12-26 15:53:29 +0200
committersrdusr <trevorgray@srdusr.com>2023-12-26 15:53:29 +0200
commit9aef76d2ba749889e04437df91ffbf341ce99b69 (patch)
treea79b47fcda3ed619d2b0588b112dc765901e9439 /heads-up-display
parent0cb5f757b63037c3ffec53bd983a3fa4b65af14f (diff)
downloaddotfiles-9aef76d2ba749889e04437df91ffbf341ce99b69.tar.gz
dotfiles-9aef76d2ba749889e04437df91ffbf341ce99b69.zip
Heads-Up-Display -> heads-up-display
Diffstat (limited to 'heads-up-display')
-rwxr-xr-xheads-up-display28
1 files changed, 28 insertions, 0 deletions
diff --git a/heads-up-display b/heads-up-display
new file mode 100755
index 0000000..8680123
--- /dev/null
+++ b/heads-up-display
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# 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
+