exec script only executing first part
I am trying to bind a key to exec a shell script. The problem is that it only executes part of the script, the first statement.
I can execute the script from a term and it works as intended.
Does anyone know what could be wrong?
Thanks.
i3config keybinding
bindsym XF86AudioLowerVolume exec $HOME/scripts/amixer/vol_down
vol_down
#!/bin/bash
amixer -q set Master 5- unmute
./update_conky_vol
update conky vol
#!/bin/bash
./.amixer 'Master' 'Left' > ~/.config/conky/volume
.amixer
#!/bin/bash
param=$(amixer get "$1",0 | grep "$2:" | egrep -m 1 -o '[0-9]{1,3}%' | egrep -m 1 -o '[0-9]{1,3}%')
echo ${param%[%]}%