baskerville / sxhkd

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

sxhkd stops working? #269

Open ghost opened 2 years ago

ghost commented 2 years ago

I'm not really sure on where to begin, but it seems as if sxhkd sometimes just stops working on my current ThinkadPad (T460s) and my previous (T440s). I can't switch window, open application and so on. I can however write stuff if I have for example a terminal open, but I can't open a new terminal with Super + Return. Oddly enough, I haven't had the same issues on my desktop. If i'm just switching to a TTY, kill the durrent sxhkd and restart it with DISPLAY=0: it seems to work again.

I wish I knew where I should start to track down the issue, but I don't Somebody that can point me in the wrong direction maybe?

gnusenpai commented 2 years ago

I've also been having this issue for some time now, it's kinda rare (once a week or less). No idea why it happens...

guijan commented 2 years ago

I also experience this issue, but I have no idea how to debug it.

ghost commented 1 year ago

I started the sxhkd daemon with output to a fifo file that logs the keybindings it runs. Here, it looked as if it I had pressed "super + Escape" just before it hanged, even if I hadn't. Dunno why. Anyway, replacing "pkill -USR1 -x sxhkd" (the command it runs when pressing "super + Esc" in the example config) with a script that I have which not only restarts sxhkd but also checks and creates a fifo seems to work (or at least I haven't had any issues for two weeks so far), but I suppose it should be possible to replace it with just "pkill sxhkd && sxhkd".