From 32fe2ebf82d666528a6a89b5f4c0614290988fdf Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Sun, 29 Aug 2021 15:21:55 +0930 Subject: [PATCH] desktop xmonad config setup --- .xmonad/xmonad.hs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index d38816f..d7ebd5a 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -199,6 +199,10 @@ myEZKeys = , ("M-d m", spawn "/usr/local/bin/dmenumount") -- launch mounter , ("M-d u", spawn "/usr/local/bin/dmenuumount") -- launch unmounter + --NOTE backlight controls + , ("", spawn "/usr/local/bin/mod_backlight +10") -- increase backlight brightness by 10 + , ("", spawn "/usr/local/bin/mod_backlight -10") -- decrease backlight brightness by 10 + --NOTE music and audio controls , ("M-S-o", spawn "/usr/local/bin/set-default-sink") -- set default output , ("M-S-i", spawn "/usr/local/bin/set-default-source") -- set default input @@ -391,6 +395,8 @@ myStartupHook = do -- Startup Applications spawnOnce "barrier &" spawnOnce "nextcloud &" + spawnOnce "slack &" + spawnOnce "todoist &" spawnOnce "element-desktop --hidden &" spawnOnce "flameshot" @@ -414,6 +420,8 @@ main = do -- xmproc0 <- spawnPipe toProc xmproc0 <- spawnPipe "xmobar -x 0 /home/solomon/.config/xmobar/xmobarrc-main.hs" + xmproc1 <- spawnPipe "xmobar -x 1 /home/solomon/.config/xmobar/xmobarrc-sub.hs" + xmproc2 <- spawnPipe "xmobar -x 2 /home/solomon/.config/xmobar/xmobarrc-sub.hs" xmonad $ ewmh $ docks def -- defaults = def @@ -439,6 +447,8 @@ main = do -- logHook = myLogHook, logHook = myLogHook <+> dynamicLogWithPP xmobarPP { ppOutput = \x -> hPutStrLn xmproc0 x + >> hPutStrLn xmproc1 x + >> hPutStrLn xmproc2 x , ppCurrent = xmobarColor "#a8de45" "" . wrap "[" "]" -- Current workspace in xmobar , ppVisible = xmobarColor "#88ae55" "" . clickable -- Visible but not current workspace , ppHidden = xmobarColor "#82AAFF" "" . wrap "*" "" . clickable -- Hidden workspaces in xmobar