todo section and a nice default for bright which let's it be used automatically
This commit is contained in:
11
bright
11
bright
@@ -1,4 +1,15 @@
|
||||
#!/bin/bash
|
||||
# this part is only used for startup scripts mainly
|
||||
if [ ! -z "$1" ]
|
||||
then
|
||||
screens="$(xrandr | grep ' connected' | awk '{print $1}')"
|
||||
for s in $screens; do
|
||||
xrandr --output "$s" --brightness "0.7"
|
||||
echo xrandr --output "$s" --brightness "0.7"
|
||||
done
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Changes brightness through dmenu (because il ike my eyes)
|
||||
level=$(echo "$(seq 1 100)" | dmenu -i -p 'Brightnesss from 1-100')
|
||||
[ -z "$level" ] && exit 0
|
||||
|
||||
Reference in New Issue
Block a user