Skip to content

Commit f8f9fa9

Browse files
committed
outputs: Adds hotkey and root menu entries to invoke Device 'amdgpu_bl0' of class 'backlight':
Current brightness: 86 (34%) Max brightness: 255 for setting backlight intensity.
1 parent 7aeffb9 commit f8f9fa9

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

doc/ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ See the [Detailed Feature List](FEATURES.md) for details.
3636
* Initial placement algorithm.
3737

3838
* Infrastructure
39+
* [done] Backlight controls through `brightnessctl` via hotkeyas and root menu.
3940
* Fix: Handle `Terminal` flag and launch applications in a suitable terminal.
4041
* Support keypad (tap to click) and middle click alternatives.
4142
* Support configurable means (eg. Alt+) to emulate right-click on laptop.
4243
* Write log to logfile (vs. stderr).
4344
* Have a naive app to show battery status.
44-
* Wire up backlight control to window menu.
4545

4646
* Bug fixes
4747
* [done] Fixes lost keyboard layout group when switching to VT and back ([#449](https://github.com/phkaeser/wlmaker/issues/449)).

etc/Config.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
// exclude the Shift-modifier well.
6060
"Ctrl+Shift+Page_Up" = OutputMagnify;
6161
"Ctrl+Shift+Page_Down" = OutputReduce;
62+
"XF86MonBrightnessDown" = (ShellExecute, "brightnessctl set 5%-");
63+
"XF86MonBrightnessUp" = (ShellExecute, "brightnessctl set +5%");
6264

6365
// TODO(kaeser@gubbe.ch): xkbcommon emits XF86Switch_VT_n for Fn only with
6466
// Ctrl+Alt presset. Means: Here, it should not need the modifiers to be

etc/RootMenu.plist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
("Magnify", OutputMagnify),
1212
("Reduce", OutputReduce),
1313
("Configure", Execute, "wdisplays"),
14-
("Save State", OutputSaveState)),
14+
("Save State", OutputSaveState),
15+
("Reduce brightness", ShellExecute, "brightnessctl set 5%-"),
16+
("Increase brightness", ShellExecute, "brightnessctl set +5%")),
1517
("Workspaces...",
1618
("New", WorkspaceAdd),
1719
("Destroy Last", WorkspaceDestroyLast),

0 commit comments

Comments
 (0)