From 9394e86a2ea44c29035630f54d276bd9712746c9 Mon Sep 17 00:00:00 2001 From: azahi Date: Sat, 29 Jun 2019 18:16:16 +0300 Subject: Replace alsa-mixer with external shell alternative Modify fonts Remove urgency hook Remove selection notification Decrease spacing and apply it to bars Tweak colors --- src/XMonad/Custom/Bindings.hs | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/XMonad/Custom/Bindings.hs') diff --git a/src/XMonad/Custom/Bindings.hs b/src/XMonad/Custom/Bindings.hs index 772b0ad..cbe5056 100644 --- a/src/XMonad/Custom/Bindings.hs +++ b/src/XMonad/Custom/Bindings.hs @@ -19,7 +19,6 @@ module XMonad.Custom.Bindings , mouseBindings ) where -import Control.Monad import qualified Data.Map as M import System.Exit import XMonad hiding (keys, modMask, @@ -77,9 +76,6 @@ zipKeys' m ks as f b = zipWith (\k d -> (m ++ k, f d b)) ks as tryMessageR_ :: (Message a, Message b) => a -> b -> X () tryMessageR_ x y = sequence_ [tryMessageWithNoRefreshToCurrent x y, refresh] --- xSelectionNotify :: MonadIO m => m () --- xSelectionNotify = join $ io --- $ unsafeSpawn . (\x -> C.notify C.applications ++ " Clipboard " ++ wrap "\"\\\"" "\"\\\"" x) <$> getSelection toggleCopyToAll :: X () toggleCopyToAll = wsContainingCopies >>= \case [] -> windows copyToAll @@ -132,7 +128,6 @@ keysSystem :: XConfig Layout -> [(String, X ())] keysSystem _ = [ ("M-C-g" , return ()) , ("" , spawn "~/.xmonad/scripts/screenlock.sh") - -- , ("M-S-c" , xSelectionNotify) , ("M-" , spawn "~/.xmonad/scripts/xshot-upload.sh") , ("M-S-" , spawn "~/.xmonad/scripts/xshot-select-upload.sh") , ("M-" , spawn "~/.xmonad/scripts/xcast.sh --webm") @@ -146,11 +141,10 @@ keysSystem _ = keysMedia :: XConfig Layout -> [(String, X ())] keysMedia _ = - [ - -- , ("" , void toggleMute) - -- , ("" , void $ lowerVolume 5) - -- , ("" , void $ raiseVolume 5) - ("" , spawn "~/.xmonad/scripts/mpc-play-pause.sh") + [ ("" , spawn "amixer set Master toggle") + , ("" , spawn "amixer set Master 5-") + , ("" , spawn "amixer set Master 5+") + , ("" , spawn "~/.xmonad/scripts/mpc-play-pause.sh") , ("" , spawn "mpc --no-status stop") , ("" , spawn "mpc --no-status prev") , ("" , spawn "mpc --no-status next") -- cgit 1.4.1