Files
dotfiles/dot_config/hypr/scripts/dunst/brightness.sh
2025-10-14 19:12:58 +03:00

11 lines
348 B
Bash

#!/bin/bash
msgId="3378455"
brightnessctl "$@" >/dev/null
brightpercent=$(ddcutil -d 1 getvcp 10 | sed 's/^.*current value = //' | sed 's/, max.*//')
notify-send -i $HOME/.config/hypr/scripts/dunst/icons/brightness.svg -a "changeBrightness" -u low -r "$msgId" \
-h int:value:"$brightpercent" "Яркость экрана: $brightpercent%"