bin/vol.sh: Fix volume script Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Thu, 19 Sep 2019 21:34:08 +0530
2 files changed,
3 insertions(+),
2 deletions(-)
M
bin/vol.sh
→
bin/vol.sh
@@ -14,9 +14,9 @@ d)
amixer sset Master 2%- ;; q) - if [[ $(amixer get Master | grep 'Right' | awk -F'[][] ' '{ print $2 }' | tr -d '\n') = "[on]" ]] + if [[ $(amixer get Master | awk -F"[][] " '{ print $3 }' | tr -d '\n') = "[on]" ]] then - cur_vol=$(amixer get Master | grep 'Right' | awk -F'[][]' '{ print $2 }' | tr -d '\n') + cur_vol=$(amixer get Master | awk -F"[][]" '/dB/ { print $2 }' | tr -d '\n') echo -ne "%{F$light}vol %{F$fg}$cur_vol" else echo -ne "%{F$light}vol %{F$fg}muted"
M
x/.xinitrc
→
x/.xinitrc
@@ -12,5 +12,6 @@ dbus-update-activation-environment --systemd DISPLAY
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK urxvtd & +source ~/.fehbg libinput-gestures-setup start exec i3