kotelnik / plasma-applet-redshift-control

Plasma 5 applet for controlling redshift (screen temperature modifying). It allowes basic redshift settings and fast manual temperature control by mouse wheel.
GNU General Public License v2.0
66 stars 12 forks source link

Keyboard shortcut to turn it on and off #30

Closed Tamriel closed 7 years ago

kotelnik commented 7 years ago

I don't think this is possible right now. I managed to only trigger something by a shortcut when the widget is focused.

Tamriel commented 7 years ago

https://github.com/keepassxreboot/keepassxc is able to recognize global shortcuts.

kotelnik commented 7 years ago

Thanks for the link. This is rather a standalone application, these are able to expose global shortcuts. But plasmoids are more under control of plasmashell.

Anyway I've just noticed that every plasmoid can have one dedicated global shorctut set in plasmoid settings. This shortcut is activating the plasmoid's state which is by default bringing up plasmoid's popup. But it can be overridden in plasmoid code, so I've overridden the behaviour to toggle redshift state.

Does it now behave as expected?

Tamriel commented 7 years ago

Somehow these shortcuts don't work on my system with any plasmoid. Maybe in the future. Thanks!