all repos — dotfiles @ 0b498183321bfc3b89ed050fb638ad5b7c9ae21f

my *nix dotfiles

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
commit

0b498183321bfc3b89ed050fb638ad5b7c9ae21f

parent

459f0e9ec69138a2265638d1f19331ade6676d2a

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M bin/vol.shbin/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/.xinitrcx/.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