mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
13 lines
317 B
Plaintext
13 lines
317 B
Plaintext
|
#!/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"
|