From 7d3fd572d171a4f0a1a6a77be19020cc62b121f1 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 13 Jul 2026 17:55:49 -0500 Subject: Add PipeWire audio with pavucontrol, pamixer, xmobar volume, and media key bindings --- modules/xmonad.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/xmonad.hs') 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 -- cgit v1.2.3