nixos-config/home/light.sh

11 lines
228 B
Bash
Raw Normal View History

2024-03-12 10:42:17 +01:00
#!/usr/bin/env bash
msgTag="lightdunst"
brightnessctl set "$1"
light="$(brightnessctl -m | cut -d, -f4)"
dunstify -a "changeLight" -u low \
-h string:x-dunst-stack-tag:$msgTag \
-h int:value:"$light" "Brightness: $light"