add brightness up/down
This commit is contained in:
parent
372f033bac
commit
924990cda8
3 changed files with 4 additions and 0 deletions
|
@ -128,6 +128,8 @@
|
||||||
"backlight": {
|
"backlight": {
|
||||||
// "device": "acpi_video1",
|
// "device": "acpi_video1",
|
||||||
"format": "{percent}% {icon}",
|
"format": "{percent}% {icon}",
|
||||||
|
"on-scroll-up": "~/.config/waybar/brightness-up.sh",
|
||||||
|
"on-scroll-down": "~/.config/waybar/brightness-down.sh",
|
||||||
"format-icons": [
|
"format-icons": [
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
|
|
1
dot_config/waybar/executable_brightness-down.sh
Normal file
1
dot_config/waybar/executable_brightness-down.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
brightnessctl set 5%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob
|
1
dot_config/waybar/executable_brightness-up.sh
Normal file
1
dot_config/waybar/executable_brightness-up.sh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
brightnessctl set +5% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob
|
Loading…
Reference in a new issue