diff options
| author | Christian <[email protected]> | 2026-07-13 17:55:49 -0500 |
|---|---|---|
| committer | Christian <[email protected]> | 2026-07-13 17:55:49 -0500 |
| commit | 7d3fd572d171a4f0a1a6a77be19020cc62b121f1 (patch) | |
| tree | 2435c13158a604e1ed125a6997ad210d31070988 /modules/xmonad.hs | |
| parent | b53d77773468ffb4f4ddc3dcd828ba88be9daeab (diff) | |
Add PipeWire audio with pavucontrol, pamixer, xmobar volume, and media key bindings
Diffstat (limited to 'modules/xmonad.hs')
| -rw-r--r-- | modules/xmonad.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/xmonad.hs b/modules/xmonad.hs index a55cd28..55f6b22 100644 --- a/modules/xmonad.hs +++ b/modules/xmonad.hs @@ -1,5 +1,6 @@ import XMonad import XMonad.Util.EZConfig (additionalKeys) +import Graphics.X11.ExtraTypes.XF86 import XMonad.Util.SpawnOnce (spawnOnce) import XMonad.Hooks.ManageDocks import XMonad.Hooks.StatusBar @@ -27,7 +28,10 @@ myConfig = defaultConfig `additionalKeys` [ ( (mod1Mask, xK_q), restart "xmonad" True ) , ( (mod1Mask, xK_f), sendMessage ToggleStruts ) - , ( (mod1Mask, xK_s), spawn "maim -s | xclip -selection clipboard -t image/png" ) ] + , ( (mod1Mask, xK_s), spawn "maim -s | xclip -selection clipboard -t image/png" ) + , ( (0, xF86XK_AudioRaiseVolume), spawn "pamixer --increase 5" ) + , ( (0, xF86XK_AudioLowerVolume), spawn "pamixer --decrease 5" ) + , ( (0, xF86XK_AudioMute), spawn "pamixer --toggle-mute" ) ] mySB = statusBarProp "xmobar" (pure xmobarPP { ppTitle = const "" }) -- main = xmonad $ withEasySB mySB defToggleStrutsKey def |
