1
0
Fork 0

Upload files to ''

This commit is contained in:
MGislv 2021-10-18 21:42:14 +00:00
parent 9f7dd6f2bb
commit 49595fbb91
1 changed files with 12 additions and 0 deletions

12
dwm-bar.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
while true
do
VOL=$(amixer get Master | awk 'FNR == 5 { print $4 }')
MUTE="$(amixer get Master | awk 'FNR == 5 { print $6 }' | sed 's/\[on]//g')"
RAM=$(free -m | awk '/^Mem/{ print $3 }')
DATE=$(date +"%x %H:%M")
xsetroot -name " VOL ${VOL}${MUTE} | RAM ${RAM} MB | ${DATE} "
sleep 0.05s
done