diff --git a/bright b/bright index 6f82d41..2abe77d 100755 --- a/bright +++ b/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 diff --git a/readme.md b/readme.md index 566f207..1e64294 100644 --- a/readme.md +++ b/readme.md @@ -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 + +