diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-11-24 20:20:08 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-11-24 20:20:08 +0530 |
commit | 24045012e69eb4d72b7a4344bca515e53412bba0 (patch) | |
tree | 5277c330f3b442bd8d09fad2e83b815038a24c6a /.config/XMonad/lib | |
parent | f300ba9a9302e70dcc72523639aecc1e04feec53 (diff) |
added playerctl keybindings
Diffstat (limited to '.config/XMonad/lib')
-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") |