aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/ddvk
blob: dedd2c932ba4502e7d3a633730395f187952ae80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if pidof vk > /dev/null; then
    if [ -z $(swaymsg -t get_tree | grep -B 5 'vk' | head -n 1 | grep 'true') ]; then
        swaymsg '[instance="vk"] scratchpad show'
    else
        swaymsg '[instance="vk"] move scratchpad'
    fi
else
    xway vk-messenger
fi