scripts/dwm/bright.sh
2025-01-07 17:57:17 -05:00

14 lines
323 B
Bash
Executable file
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
case $BLOCK_BUTTON in
1) /home/swebb/Scripts/dwm/brightMenu.sh;;
esac
light="1%"
if [ $(brightnessctl -d intel_backlight get) -ne 1 ]; then
light="$(awk "BEGIN { print $(brightnessctl -d intel_backlight get)/1200}")%"
fi
icon="󱩎" # Set if REDSHIFT_ENABLED is unset
echo "^c#FED06E^ ${icon} ${light} "