baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.81k stars 416 forks source link

bspwm stopped responding to local mouse clicks / keyboard, but remote ssh bspc works. How to "regain" control? #1510

Closed jaimet closed 2 months ago

jaimet commented 2 months ago

My setup has been working perfectly for days, but all of a sudden, bspwm has stopped responding to mouse clicks and keyboard events i.e. if I move the mouse around, the pointer moves on screen but my usual keyboard "chords" have no effect (for example super + <num> does NOT focus the relevant dekstop).

If I log in from another machine using ssh, however, I can change desktop by running:

DISPLAY=:0 bspc desktop --focus <identifier>

I have 10 desktops full of windows in various (unsaved) states so I would really like to avoid just rebooting this machine. Is there any way that I can regain control of this machine?

PS: FWIW, sxhkd appears to still be running:

$ ps aux | grep -i sxhkd
user      914  0.0  0.0   7056  1576 ?        S    May28   0:20 sxhkd

Is there a definitive way to determine whether this is a problem in bspwm or sxhkd? (I may have logged this issue in the wrong repo!)

jaimet commented 2 months ago

I found the following workaround here:

Firstly, ctrl + alt + F2 to change to an unused virtual terminal / tty. Then run:

pkill sxhkd

then

DISPLAY=:0 sxhkd

I now run ctrl + alt + F1 to switch back to my X session and all is working again. 🥳🎉 After reading some of the associated / linked issues, I suspect that this is caused by me inadvertently running sxhkd's reload binding, but that's only a suspicion at the moment. I'll close this here, as this does not appear to be a bspwm issue.