todo section and a nice default for bright which let's it be used automatically

This commit is contained in:
shockrahwow 2019-07-04 21:49:29 -07:00
parent 4f0b227f08
commit f3b2f371d1
2 changed files with 23 additions and 1 deletions

11
bright
View File

@ -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

View File

@ -4,6 +4,17 @@ A collection of shell scripts that I use with dmenu to make my life easier.
Right now most of them are filled with basisms but thats slowly changing overtime.
# I have a cool script too can I contribute it here?
## I have a cool script too can I contribute it here?
Of course! [Submit a merge request](https://docs.gitlab.com/ee/gitlab-basics/add-merge-request.html) or just email the file/file to my email `alejandros714@protonmail.com`.
## TODO
Scale 0-5
: 0 = High priority
: 5 = Low priority
bright
: Remove some bashism that the script is heavily reliant on