mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
14 lines
398 B
Bash
14 lines
398 B
Bash
#!/bin/sh
|
|
|
|
# show the current brightness level.
|
|
|
|
case $BLOCK_BUTTON in
|
|
1) setsid -w -f "$TERMINAL" -e brightnessctl; pkill -RTMIN+20 "${STATUSBAR:-dwmblocks}" ;;
|
|
3) notify-send "💡 Brightness module" "\- Shows brightness level ☀️." ;;
|
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
|
esact
|
|
|
|
brightness=$(brightnessctl -m | grep -m 1 "backlight" | cut -d "," -f 4)
|
|
|
|
echo "💡 $brightness"
|