From f3b2f371d12cc70c44f22c0190acddfdb22be3f3 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Thu, 4 Jul 2019 21:49:29 -0700 Subject: [PATCH] todo section and a nice default for bright which let's it be used automatically --- bright | 11 +++++++++++ readme.md | 13 ++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) 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 + +