1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00
dotfiles/deadd/.local/bin/brightness

13 lines
317 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$1" == "inc" ]; then
xbacklight -inc 20
fi
if [ "$1" == "dec" ]; then
xbacklight -dec 20
fi
notify-send.py "Screen Brightness" "$(printf "%.0f\n" "$(xbacklight -get)")" \
--hint string:image-path:video-display boolean:transient:true \
--replaces-process "brightness-popup"