From 6da0d07b15f13abcf59ae881f25c3a719dfc352c Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Mon, 19 Dec 2022 00:50:10 +1000 Subject: [PATCH] xmonad: added volume controls --- .xmonad/xmonad.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 642fabc..72986fe 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -174,7 +174,7 @@ promptTheme = -- Applications -- ------------------ -brightnessDown, brightnessUp, browser, discord, editor, element, incognitoBrowser, iogBrowser, launcher, logseq, musicPlayer, obs, screenshot, slack, myTerminal :: String +brightnessDown, brightnessUp, browser, discord, editor, element, incognitoBrowser, iogBrowser, launcher, logseq, musicPlayer, obs, screenshot, slack, myTerminal, volumeDown, volumeMute, volumeUp :: String brightnessDown = "light -U 5" brightnessUp = "light -A 5" browser = "brave" @@ -195,6 +195,9 @@ slack = "slack" myTerminal = "termonad" myScreenLockCmd = "xscreensaver --no-splash" myScreenLock = "xscreensaver-command -lock" +volumeDown = "amixer set Master 2%-" +volumeMute = "amixer set Master toggle" +volumeUp = "amixer set Master 2%+" -------------- -- Keybinds -- @@ -220,6 +223,9 @@ myKeybinds = ("M-C-w", shiftToProjectPrompt promptTheme), ("M-w", switchProjectPrompt promptTheme), -- Environment controls + ("", spawn volumeDown), + ("", spawn volumeMute), + ("", spawn volumeUp), ("", spawn brightnessDown), ("", spawn brightnessUp) ]