First commit. Add .i3 directory

This commit is contained in:
kuben
2019-07-02 21:47:58 +02:00
commit 554573c69b
23 changed files with 1604 additions and 0 deletions

8
.i3/lemonbar/get_vol.sh Normal file
View 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