statusbar : reseaux

This commit is contained in:
_N3m0 2023-12-14 18:08:00 +01:00
parent 4e76207023
commit e6a66f9a7d
1 changed files with 2 additions and 1 deletions

View File

@ -2,13 +2,14 @@
while true; do
wifi=$(iwgetid -r)
date=$(date +"%a %d %b. %Y")
hour=$(date +"%H:%M")
battery=$(upower -i $(upower -e | grep BAT) | grep percentage | sed "s/ //g" | cut -d ":" -f2)
volume=$(amixer get Master | grep dB | head -n 1 | cut -f7 -d' ' | sed "s/\[\|\]//g")
brightness=$(echo "100 * $(xrandr --prop --verbose | grep -A10 " connected" | grep Brightness | cut -f2 -d' ')" | bc | sed "s/\.[0-9]$/%/g")
xsetroot -name "| lum: $brightness | vol: $volume | bat: $battery | $date | $hour |"
xsetroot -name "| res: $wifi | lum: $brightness | vol: $volume | bat: $battery | $date | $hour |"
sleep 15
done