From 89263c87eda6ece59626af50ee7a032dcdb77332 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Sun, 1 Sep 2019 19:02:04 -0700 Subject: [PATCH] fixed parameter ingest on bright and added more info to distro script --- bright | 5 +++-- distro | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bright b/bright index 11c1ea5..7eedea8 100755 --- a/bright +++ b/bright @@ -3,9 +3,10 @@ if [ ! -z "$1" ] then screens="`xrandr | grep ' connected' | awk '{print $1}'`" + percentage=`echo "scale=2;" "$1/100" | bc -l` for s in $screens; do - xrandr --output "$s" --brightness "0.7" - echo xrandr --output "$s" --brightness "0.7" + xrandr --output "$s" --brightness "0$percentage" + echo xrandr --output "$s" --brightness "0$percentage" done exit 0 fi diff --git a/distro b/distro index fa64336..cbcd144 100755 --- a/distro +++ b/distro @@ -35,7 +35,7 @@ o88888"888"88o. "8888"".88 .oo888oo.. # Now some diagnostic shit idk man #echo "Packages installed: ${red}`dpkg --get-selections | grep -v deinstall | wc -l`${nc} echo "Distro: ${green}`uname -v | awk '{print $3}'`${nc} -Kernel: ${white}`uname -o`${nc}" +Kernel: ${red}`uname -r` ${nc} +System: ${white}`uname -o`(duh)${nc}" echo "=|:^) Art: https://www.asciiart.eu/plants/flowers =|:^)" -sleep 1