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 | |
parent | f300ba9a9302e70dcc72523639aecc1e04feec53 (diff) |
added playerctl keybindings
Diffstat (limited to '.config')
-rw-r--r-- | .config/XMonad/lib/Defaults.hs | 2 | ||||
-rw-r--r-- | .config/XMonad/lib/Keybindings.hs | 6 | ||||
-rw-r--r-- | .config/alacritty/themes/dracula.yml | 6 | ||||
-rw-r--r-- | .config/polybar/config.ini | 3 |
4 files changed, 11 insertions, 6 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") diff --git a/.config/alacritty/themes/dracula.yml b/.config/alacritty/themes/dracula.yml index 12fe23a..3866808 100644 --- a/.config/alacritty/themes/dracula.yml +++ b/.config/alacritty/themes/dracula.yml @@ -17,9 +17,9 @@ colors: focused_match: foreground: '0x44475a' background: '0xffb86c' - bar: - background: '0x282a36' - foreground: '0xf8f8f2' + bar: + background: '0x282a36' + foreground: '0xf8f8f2' line_indicator: foreground: None background: None diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 4dc7b04..b87a081 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -256,7 +256,7 @@ label-connected-background = ${colors.ethernet-bg} label-connected-foreground = ${colors.ethernet-fg} format-connected-underline = #55aa55 -format-connected-prefix = "LAN: " +format-connected-prefix = "" format-connected-prefix-foreground = ${colors.foreground} label-connected = " %local_ip% " @@ -358,7 +358,6 @@ pin-workspaces = false enable-click = true enable-scroll = false format = <label-state> -index-sort = true label-monitor = %name% |