From 88fd5db6abc089d22ef4918c012f4008629417ef Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 5 May 2020 21:57:03 +0900 Subject: KMilo: added keyboard support for screen brightness up/down. This is inspired and partially include code from Roman Savochenko proposed in bug 2783 and tdeutils #8. Signed-off-by: Michele Calgaro (cherry picked from commit 3c70b34ae35cd22d6b7424e4f8523a2c6a1a62e5) --- kmilo/generic/generic_monitor.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kmilo/generic/generic_monitor.h') diff --git a/kmilo/generic/generic_monitor.h b/kmilo/generic/generic_monitor.h index 44ff970..9305ac3 100644 --- a/kmilo/generic/generic_monitor.h +++ b/kmilo/generic/generic_monitor.h @@ -65,6 +65,8 @@ public slots: void fastVolumeUp(); void fastVolumeDown(); void mute(); + void brightnessUp(); + void brightnessDown(); void launchMail(); void launchBrowser(); void launchSearch(); @@ -83,12 +85,13 @@ private: bool retrieveMute(); bool retrieveVolume(); void displayVolume(); + void brightnessChange(int direction, int step); void launch(TQString configKey, TQString defaultApplication); TDEGlobalAccel *ga; TDEConfig* config; - DCOPRef *kmixClient, *kmixWindow; + DCOPRef *kmixClient, *kmixWindow, *tdepowersave; int m_progress; long m_volume; -- cgit v1.2.1