From 037fd6bedb72f846be6177895ead7aac2d9129a1 Mon Sep 17 00:00:00 2001 From: Kaan Barmore-Genc Date: Wed, 26 Apr 2023 20:32:45 -0400 Subject: [PATCH] Document i3/sway/waybar usage --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 42f511d..602fc0a 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,21 @@ Then run `backlight-control` to get the current brightness as a percentage, or `backlight-control +1` to increase brightness by 1 percent, or `backlight-control -1` to decrease brightness by 1 percent. Or higher numbers for higher percentages at a time. + +### With i3 / Sway + +``` +bindsym XF86MonBrightnessUp exec backlight-control +1 +bindsym XF86MonBrightnessDown exec backlight-control -1 +``` + +### With waybar + +``` +"backlight": { + "device": "intel_backlight", + "format": "{percent}%", + "on-scroll-up": "backlight-control +1", + "on-scroll-down": "backlight-control -1" +}, +```