From 85258644591c63cc24c8608d2c1d7331edba9f7d Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 5 Mar 2020 21:18:50 +0100 Subject: xmonad volume --- xmonad.hs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'xmonad.hs') diff --git a/xmonad.hs b/xmonad.hs index 608c9cc..fda600f 100644 --- a/xmonad.hs +++ b/xmonad.hs @@ -3,6 +3,7 @@ import XMonad.Config.Desktop -- Utilities import XMonad.Util.SpawnOnce +import XMonad.Util.EZConfig(additionalKeys, additionalKeysP) myModMask = mod4Mask myTerminal = "konsole" @@ -17,8 +18,18 @@ main = do , borderWidth = myBorderWidth , normalBorderColor = "#292d3e" , focusedBorderColor = "#bbc5ff" - } + } `additionalKeysP` myKeys myStartupHook = do - spawnOnce "redshift &" + spawnOnce "redshift -c /home/charles/.config/redshift.conf &" spawnOnce "xinput disable 'ETPS/2 Elantech Touchpad' &" + +myKeys = [ ("", spawn "pulseaudio-ctl up") + , ("", spawn "pulseaudio-ctl down") + , ("", spawn "pulseaudio-ctl mute") + ] + -- , ("", spawn "playerctl play-pause") + -- , ("", spawn "playerctl previous") + -- , ("", spawn "playerctl next") + -- , ("", spawn "lux -a 5%") + -- , ("", spawn "lux -s 5%") -- cgit