baskerville/sxhkd

Rofi completely unfunctioning in `~/.xinitrc`

abrendtro opened this issue · 3 comments

Minimum ~/.xinitrc:

xkbcomp ~/.desktop/keymap $DISPLAY &
sxhkd -c ~/.desktop/keybinds &
wait

~/.desktop/keybinds:

ctrl + alt + t
        wmctrl -xa st-256color || st

~/.desktop/keymap:

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   {
                include "pc+us(dvorak)+inet(evdev)+capslock(none)+capslock(ctrl_modifier)+terminate(ctrl_alt_bksp)+shift(both_capslock)"
        };
        xkb_geometry  { include "pc(pc105)"     };
};

Note that pkill sxhkd; sxhkd -c .desktop/keybinds fixes the issues, once it's already running

eremt commented

I was going to create a similar issue but I'll comment here instead since it's similar, For me it's only super + Escape not working on first boot. All other keys are fine. Killing then starting it fixes the issue. I'm on Debian testing with sxhkd 0.6.2.

Make sure to run xkbcomp synchronously (i.e. without &). This solved the issue for me