From 24045012e69eb4d72b7a4344bca515e53412bba0 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 24 Nov 2022 20:20:08 +0530 Subject: added playerctl keybindings --- .config/XMonad/lib/Defaults.hs | 2 ++ .config/XMonad/lib/Keybindings.hs | 6 +++++- .config/alacritty/themes/dracula.yml | 6 +++--- .config/polybar/config.ini | 3 +-- 4 files changed, 11 insertions(+), 6 deletions(-) (limited to '.config') 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 = [ , ("", spawn volUp) , ("", spawn volDown) , ("", spawn volMute) + , ("", spawn pausePlay) + , ("", spawn pausePlay) + , ("", 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 = -index-sort = true label-monitor = %name% -- cgit v1.2.3