From 9b8c331a6a3b9ec473e6c20fe8431f32116983c8 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Wed, 15 Jan 2020 08:38:35 +0100 Subject: [PATCH] fix: kill mpc-current when mpc unavailable --- .config/i3blocks/mpc-current | 2 ++ .profile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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