diff --git a/.config/i3blocks/mpc-current b/.config/i3blocks/mpc-current index 314c1b6..1baeced 100755 --- a/.config/i3blocks/mpc-current +++ b/.config/i3blocks/mpc-current @@ -1,5 +1,7 @@ #!/bin/sh +[ ! -x "$(command -v mpc)" ] && exit + alias mpc-current='mpc -f "%title% - %album% - %artist%" current' mpc-current diff --git a/.profile b/.profile index c49ef28..62e9c25 100644 --- a/.profile +++ b/.profile @@ -1,7 +1,8 @@ export VIMINIT='source ~/.config/vim/vimrc' export PASSWORD_STORE_GENERATED_LENGTH='64' -if [ -x "$(command -v gpgconf)" ]; then +if [ -x "$(command -v gpgconf)" ] +then export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch gpg-agent fi