First commit. Add .i3 directory
This commit is contained in:
8
.i3/lemonbar/get_vol.sh
Normal file
8
.i3/lemonbar/get_vol.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
RTN=$(amixer get Master | grep "Front Left: Playback" | \
|
||||
awk -F'[]%[]' '{if ($5 == "off") {print "MUTE"} else {printf "%d", $2}}')
|
||||
if [[ -z $RTN ]]; then
|
||||
echo "NONE"
|
||||
else
|
||||
echo "$RTN"
|
||||
fi
|
||||
Reference in New Issue
Block a user