baskerville / sxhkd

Simple X hotkey daemon
BSD 2-Clause "Simplified" License
2.73k stars 140 forks source link

Trying to autohide lemonbar #101

Open ghost opened 6 years ago

ghost commented 6 years ago
super
        xdotool search --name lb windowmap
@super
        sleep 3 && xdotool search --name lb windowunmap && bspc config top_padding 0

Each of the individual commands work when run in a term. I think I'm doing something wrong regarding sxhkd.

ghost commented 6 years ago

I also tried replacing super with Super_L since I thought sxhkd might be waiting for another key when super is used.

noctuid commented 6 years ago

I don't think you can bind super by itself. If I try with super + key and super + @key (or a non-modifier key), it works.

mavaa commented 6 years ago

I just found this randomly, and I'm not sure if this is correct, but could it be that you have to use uppercase S? I have these two in my config and it works perfectly:

Super_L
    barcli show

@Super_L
    barcli hide

barcli is just a script that will start or kill lemonbar