new color on ./distro and stat current brightness on ./bright

This commit is contained in:
shockrah 2020-05-22 13:35:13 -07:00
parent fc5a75071a
commit 904b8971d5
2 changed files with 5 additions and 3 deletions

3
bright
View File

@ -12,7 +12,8 @@ then
fi fi
# Changes brightness through dmenu (because i like my eyes) # Changes brightness through dmenu (because i like my eyes)
level=`seq 1 100 | dmenu -i -p 'Brightnesss from 1-100'` current="`xrandr --verbose | grep Brightness | head -1 | awk '{print $2}'`"
level=`seq 1 100 | dmenu -i -p "($current) Brightnesss from 1-100"`
if [ -z "$level" ]; then exit; fi if [ -z "$level" ]; then exit; fi
percentage=`echo "scale=2;" "$level/100" | bc -l` percentage=`echo "scale=2;" "$level/100" | bc -l`

5
distro
View File

@ -2,7 +2,8 @@
# Wanna look cool in desktop threads? here you go # Wanna look cool in desktop threads? here you go
red='\033[1;31m' red='\033[1;31m'
green='\033[0;32m' pink='\033[1;95m'
green='\033[1;32m'
white='\033[1;37m' white='\033[1;37m'
nc='\033[0m' nc='\033[0m'
clear clear
@ -35,7 +36,7 @@ o88888"888"88o. "8888"".88 .oo888oo..
# Now some diagnostic shit idk man # Now some diagnostic shit idk man
#echo "Packages installed: ${red}`dpkg --get-selections | grep -v deinstall | wc -l`${nc} #echo "Packages installed: ${red}`dpkg --get-selections | grep -v deinstall | wc -l`${nc}
echo "Distro: ${green}`uname -v | awk '{print $3}'`${nc} echo "Distro: ${green}`uname -v | awk '{print $3}'`${nc}
Kernel: ${red}`uname -r` ${nc} Kernel: ${pink}`uname -r` ${nc}
System: ${white}`uname -o`(duh)${nc}" System: ${white}`uname -o`(duh)${nc}"
echo "=|:^) Art: https://www.asciiart.eu/plants/flowers =|:^)" echo "=|:^) Art: https://www.asciiart.eu/plants/flowers =|:^)"