How can I give a sleep button on my keyboard a new life?

Since I have graphics errors and a buggy system under Wayland after the system has been reactivated from sleep mode, I’ve deactivated all these modes like it’s explained here: how-to-completely-disable-sleep-hibernate-and-fast-boot.

But it comes with the disadvantage of not having a function of the sleep button on my Razer-Keyboard anymore.
Does anyone know how to give it a shutdown-function instead ?

In the past I did the same in Windows and the sleep command of this button became in a miraculously way a shutdown command automatically.

Hallo @wavemop ,
sudo systemctl unmask sleep.target
enables sleep if you have masked it.

In Shortcuts/Kurzbefehle>Session Management select ‘Shutdown Without Confirmation’ and
add a custom shortcut.

1 Like

That’s what I was looking for, thx dude!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.