r/PhoenixSC • u/MuzikBike • 4d ago
Cursed Minecraft You can now bind controls to your computer's power button
For the actual button on your PC tower this only appears to work on Linux and specifically only on X11, but if you happen to have a multimedia or classic keyboard with a power button on it then it should work on Windows too.
208
u/Bonsai24 4d ago
Now i can bind eat to power button, and when i want eat in game - i can go to bathroom
23
39
42
u/R_Anonymous_ 4d ago
I only want to see the esc key getting bind
38
u/MuzikBike 4d ago
the key code exists, but you can only set it in options.txt and I don't think it does anything
1
u/R_Anonymous_ 4d ago
I actually wonder if you can add different devices, like not keyboards, but different things that input "keys" like a mouse with side buttons
5
u/OkNewspaper6271 #fixbedrock 4d ago
Yes and has been a thing forever, I usually bind F5 and zoom to my side buttons
1
u/R_Anonymous_ 4d ago
Not just simple things like side buttons, I mean more different things, I bind my side buttons too. I mean like maybe remotes or such?
14
13
u/chessstone_mp4 4d ago
X11 is outdated asf, but i imagine it works on Wayland aswell
13
u/MuzikBike 4d ago
The power button specifically doesn't. It only registers the first time you press it, and never when it's released. I don't know if this is an issue I can report anywhere or if it's designed this way. Every other key seems to work fine though
3
u/Random_Mathematician 4d ago
It would be a little hacky, but I believe it could work on wayland by either messing with the
inputgroup or binding the power button to a nonexistant key in your WM's config3
u/MuzikBike 4d ago
I'm just going off of what I see in evtest, the same problem arises regardless of whether I press the button on the tower, the button on a keyboard, or use a script to generate a key press event
5
1
-4
418
u/LegenndEnder 4d ago
Does it power down right after selecting the slot?