aboutsummaryrefslogtreecommitdiff
path: root/bspwm/terminal.sh
blob: 8cd5418a53d62793f9b5e382877a2a1e612b23b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DESKTOP=term
INSTANCE=tmux_term

(xdo id -n $INSTANCE > /dev/null) || \
    alacritty --class $INSTANCE -e \
        tmux new-session -A -s default

if [ $(bspc query -D --names -d focused) = $DESKTOP ]; then
    echo "sakrit"
    bspc desktop -f last.local
else
    bspc desktop $DESKTOP -m focused
    bspc desktop -f $DESKTOP
fi