bin/xctl: Reset brightness

master
Pierre Neidhardt 2018-02-08 12:57:41 +01:00
parent d1f069f915
commit 07a323e183
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ current=$(xrandr | sed -n "/current/{n;p;q}" | cut -f1 -d" ")
# xrandr | awk 'NR==2 {print $1; exit}'
if [ $# -eq 0 ]; then
xrandr --output "$current" --auto --transform none && \
xrandr --output "$current" --auto --transform none --brightness 1 && \
xrandr -s "$(xrandr | awk '/^ / {print $1;exit}')"
exit
fi