modify brightness settings

This commit is contained in:
Simon Rieger 2023-07-12 23:18:47 +02:00
parent 4a8d27d666
commit 3f37c38a08
3 changed files with 8 additions and 4 deletions

View file

@ -140,8 +140,10 @@
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"on-scroll-up": "~/.config/waybar/brightness-up.sh",
"on-scroll-down": "~/.config/waybar/brightness-down.sh",
"on-scroll-up": "~/.config/waybar/brightness-up.sh 1",
"on-scroll-down": "~/.config/waybar/brightness-down.sh 1",
"on-click": "~/.config/waybar/brightness-up.sh 5",
"on-click-right": "~/.config/waybar/brightness-down.sh 5",
"format-icons": [
"",
"",

View file

@ -1 +1,2 @@
brightnessctl set 1%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob
WERT=$1
brightnessctl set ${WERT}%- | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob

View file

@ -1 +1,2 @@
brightnessctl set +1% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob
WERT=$1
brightnessctl set +${WERT}% | sed -En 's/.*\(([0-9]+)%\).*/\1/p' > /tmp/wob