add brightness up/down

This commit is contained in:
Simon Rieger 2023-05-30 11:57:24 +02:00
parent 372f033bac
commit 924990cda8
3 changed files with 4 additions and 0 deletions

View file

@ -128,6 +128,8 @@
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"on-scroll-up": "~/.config/waybar/brightness-up.sh",
"on-scroll-down": "~/.config/waybar/brightness-down.sh",
"format-icons": [
"",
"",

View file

@ -0,0 +1 @@
brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob

View file

@ -0,0 +1 @@
brightnessctl set +5% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob