scripts/dwm/bright.sh
2022-12-28 16:44:03 -05:00

12 lines
271 B
Bash
Executable file
Raw 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
echo "^c#FED06E^  ${light} "