aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/scripts/Heads-Up-Display
blob: d90c7d35ffd188342869d58c25ea169d631d75ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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