add volume script

This commit is contained in:
randomuser 2021-05-11 21:53:13 -05:00
parent 667a3e7238
commit 3f3a08b8dd
3 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@ sh:
cp -f scripts/nws $(DESTDIR)$(PREFIX)/bin cp -f scripts/nws $(DESTDIR)$(PREFIX)/bin
cp -f scripts/urlhandle $(DESTDIR)$(PREFIX)/bin cp -f scripts/urlhandle $(DESTDIR)$(PREFIX)/bin
cp -f scripts/indicate $(DESTDIR)$(PREFIX)/bin cp -f scripts/indicate $(DESTDIR)$(PREFIX)/bin
cp -f scripts/vol $(DESTDIR)$(PREFIX)/bin
mkc: mkc:
cc progs/scream.c -o progs/scream cc progs/scream.c -o progs/scream
c: c:

View File

@ -2,4 +2,5 @@
i=$(date '+%H:%M:%S %m/%d (%h)') i=$(date '+%H:%M:%S %m/%d (%h)')
j=$(bat) j=$(bat)
printf "%s | %s\n" "$i" "$j" | nenu k=$(vol)
printf "%s | %s\% | %s\n" "$i" "$j" "$k" | nenu

3
scripts/vol Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
amixer sset Master 0amixer sset Master 0%+ | tail -1 | awk -F'[' '{print }' | awk -F']' '{print }'