aboutsummaryrefslogtreecommitdiff
path: root/Heads-Up-Display
blob: cac86818403e084650cc0f5f316194d6865e30b9 (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
        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