feat: attempt to add brightness

This commit is contained in:
Fernando Araoz 2025-01-15 06:51:42 -05:00
parent 01126b2534
commit 6d9d7a688c
2 changed files with 15 additions and 2 deletions

View File

@ -1,11 +1,18 @@
{
"layer": "top",
"position": "top",
"height": 24,
"height": 26,
"modules-left": ["river/tags", "river/window"],
"modules-center": [],
"modules-right": ["cpu", "memory", "network", "pulseaudio", "clock"],
"modules-right": ["custom/brightness", "cpu", "memory", "network", "pulseaudio", "clock"],
"custom/brightness": {
"format": "BRI {}%",
"exec": "ddcutil getvcp 10 | grep -o '[0-9]\\+$'",
"on-scroll-up": "ddcutil setvcp 10 + 5",
"on-scroll-down": "ddcutil setvcp 10 - 5",
"interval": 1
},
"clock": {
"format": "{:%H:%M}",
"tooltip": false

6
deps.txt Normal file
View File

@ -0,0 +1,6 @@
foot fuzzel river waybar tmux
brightnessctl
# Make sure you're in the video group:
# sudo usermod -aG video $USER