From 4a0a0d612f0b635af973b756fa250ee221fcdb3f Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Tue, 3 Dec 2019 12:49:03 +0300 Subject: Fix mpc error --- scripts/mpc-play-pause.sh | 4 ++-- src/XMonad/Custom/Bindings.hs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/mpc-play-pause.sh b/scripts/mpc-play-pause.sh index 887ba5b..6c82377 100755 --- a/scripts/mpc-play-pause.sh +++ b/scripts/mpc-play-pause.sh @@ -2,7 +2,7 @@ if mpc | grep -q '\[playing\]' then - mpc --no-status pause + mpc pause else - mpc --no-status play + mpc play fi diff --git a/src/XMonad/Custom/Bindings.hs b/src/XMonad/Custom/Bindings.hs index f48416a..f956674 100644 --- a/src/XMonad/Custom/Bindings.hs +++ b/src/XMonad/Custom/Bindings.hs @@ -143,9 +143,9 @@ keysMedia _ = , ("" , spawn "pactl set-sink-mute 0 false && pactl set-sink-volume 0 -10%") , ("" , spawn "pactl set-sink-mute 0 false && pactl set-sink-volume 0 +10%") , ("" , spawn "~/.xmonad/scripts/mpc-play-pause.sh") - , ("" , spawn "mpc --no-status stop") - , ("" , spawn "mpc --no-status prev") - , ("" , spawn "mpc --no-status next") + , ("" , spawn "mpc stop") + , ("" , spawn "mpc prev") + , ("" , spawn "mpc next") ] keysWorkspaces :: XConfig Layout -> [(String, X ())] -- cgit 1.4.1