add volume script
This commit is contained in:
parent
667a3e7238
commit
3f3a08b8dd
1
Makefile
1
Makefile
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
amixer sset Master 0amixer sset Master 0%+ | tail -1 | awk -F'[' '{print }' | awk -F']' '{print }'
|
Loading…
Reference in New Issue