From 35528621d9e63925b660651a4b9badacf710ba75 Mon Sep 17 00:00:00 2001 From: Max Hohlfeld Date: Wed, 16 Aug 2023 20:29:09 +0200 Subject: [PATCH] feat: adopt to new screen and some qol for xmonad --- roles/xmonad/files/xmobarrc_qwerty | 4 ++-- roles/xmonad/files/xmonad_qwerty.hs | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/roles/xmonad/files/xmobarrc_qwerty b/roles/xmonad/files/xmobarrc_qwerty index cf9c216..e86aa5f 100644 --- a/roles/xmonad/files/xmobarrc_qwerty +++ b/roles/xmonad/files/xmobarrc_qwerty @@ -1,7 +1,7 @@ -Config { font = "Iosevka Normal 11" +Config { font = "Iosevka Normal 12" , bgColor = "#3f3f3f" , fgColor = "#dcdccc" - , position = TopH 22 + , position = TopH 25 , border = FullB , borderColor = "#dcdccc" , lowerOnStart = True diff --git a/roles/xmonad/files/xmonad_qwerty.hs b/roles/xmonad/files/xmonad_qwerty.hs index 515c847..eef5ce6 100644 --- a/roles/xmonad/files/xmonad_qwerty.hs +++ b/roles/xmonad/files/xmonad_qwerty.hs @@ -50,8 +50,9 @@ myScratchpads :: [NamedScratchpad] myScratchpads = [ NS "cmus" "alacritty -n cmus -e cmus" (resource =? "cmus") (customFloating $ W.RationalRect (1/6) (1/6) (4/6) (4/6)) , NS "nnn" "alacritty -t nnn -e run_in_bash n" (title =? "nnn") (customFloating $ W.RationalRect (1/4) (1/6) (2/4) (4/6)) - , NS "neomutt" "alacritty -t neomutt -e neomutt -f posteo-Inbox" (title =? "neomutt") (customFloating $ W.RationalRect (1/10) (1/10) (8/10) (8/10)) + , NS "aerc" "alacritty -t aerc -e aerc" (title =? "aerc") (customFloating $ W.RationalRect (1/10) (1/10) (8/10) (8/10)) , NS "vimwiki" "alacritty -t vimwiki -e run_in_bash vw" (title =? "vimwiki") (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3)) + , NS "dino" "dino" (title =? "Dino") (customFloating $ W.RationalRect (1/10) (1/10) (8/10) (8/10)) , NS "keepassxc" "keepassxc ~/dokumente/Database.kdbx" (title =? "Database.kdbx - KeePassXC" <||> title =? "Database.kdbx [Gesperrt] - KeePassXC") defaultFloating , NS "qalculate" "qalculate-gtk" (title =? "Qalculate!") (customFloating $ W.RationalRect (3/6) (1/6) (1/6) (1/6)) , NS "pavucontrol" "pavucontrol" (title =? "Lautstärkeregler") (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3)) @@ -162,9 +163,9 @@ myAdditionalKeys = -- scratchpads , ("M-s c", namedScratchpadAction myScratchpads "cmus") - , ("M-s m", namedScratchpadAction myScratchpads "neomutt") + , ("M-s m", namedScratchpadAction myScratchpads "aerc") , ("M-s v", namedScratchpadAction myScratchpads "vimwiki") - + , ("M-s d", namedScratchpadAction myScratchpads "dino") , ("M-S-a", namedScratchpadAction myScratchpads "keepassxc") , ("M-n", namedScratchpadAction myScratchpads "nnn") , ("M-s a", namedScratchpadAction myScratchpads "pavucontrol") @@ -228,8 +229,9 @@ myManageHook = composeAll . concat $ , [ ( className =? "LibreWolf" <&&> role =? "Organizer" ) --> doFloat ] -- Steam and games - , [ className =? "Steam" --> doShift "steam" ] + , [ (className =? "steam" <||> className =? "steamwebhelper") --> doShift "steam" ] , [ (title *!? "Friends List" <||> title *!? "News" ) --> doF W.swapDown ] + , [ title =? "Steam" --> doF W.shiftMaster ] , [ title =? t <&&> title *!? t --> doShift "game" | t <- myGames ] -- float specific classes @@ -253,6 +255,7 @@ myStartupHook = do spawnOnce "redshift -c /home/max/.config/redshift/redshiftrc" spawnOnce "feh --bg-fill ~/bilder/bg.jpg" spawnOnce "/usr/bin/syncthing -no-browser -logfile=default" + spawnOnce "autorandr -c" -- Main main = do