diff options
Diffstat (limited to '.config/XMonad')
-rw-r--r-- | .config/XMonad/lib/Defaults.hs | 2 | ||||
-rw-r--r-- | .config/XMonad/lib/Keybindings.hs | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/.config/XMonad/lib/Defaults.hs b/.config/XMonad/lib/Defaults.hs index 9c83de6..29fd87b 100644 --- a/.config/XMonad/lib/Defaults.hs +++ b/.config/XMonad/lib/Defaults.hs @@ -29,6 +29,8 @@ myTerminal = "open_terminal" myTerminal' = "WINIT_X11_SCALE_FACTOR=1.5 alacritty" myLauncher = "dmenu_run" +pausePlay = "playerctl play-pause" + volUp = "pamixer -i 5" volDown = "pamixer -d 5" volMute = "pamixer -t" diff --git a/.config/XMonad/lib/Keybindings.hs b/.config/XMonad/lib/Keybindings.hs index 708ae90..b839533 100644 --- a/.config/XMonad/lib/Keybindings.hs +++ b/.config/XMonad/lib/Keybindings.hs @@ -153,6 +153,9 @@ myKeybindingsP = [ , ("<XF86AudioRaiseVolume>", spawn volUp) , ("<XF86AudioLowerVolume>", spawn volDown) , ("<XF86AudioMute>", spawn volMute) + , ("<XF86AudioPlay>", spawn pausePlay) + , ("<XF86AudioPause>", spawn pausePlay) + , ("<Pause>", spawn pausePlay) -- actions -- TODO: add reboot, shutdown, logout, copy, cut, paste , ("M-a w", spawn wifiOff) @@ -160,6 +163,7 @@ myKeybindingsP = [ , ("M-a s", spawn customScreenshot) , ("M-a S-s", spawn fullScreenshot) , ("M-a m", spawn volMute) + , ("M-a p", spawn pausePlay) -- media , ("M-m w", myScratchpad "wallpaper") , ("M-m o", spawn "obs") @@ -173,7 +177,7 @@ myKeybindingsP = [ -- system apps/scratchpads , ("M-b t", spawn myTorrentClient) , ("M-b i", spawn myBrowser) - , ("M-b d", myScratchpad "aarandr") + , ("M-b d", myScratchpad "arandr") , ("M-b c", myScratchpad "calc") , ("M-b b", myScratchpad "blueman") , ("M-b p", myScratchpad "pavucontrol") |