From cd79c9bf415f95aafcfb47bc00b2fe0a32103b62 Mon Sep 17 00:00:00 2001 From: Max Hohlfeld Date: Sun, 10 Dec 2023 19:35:13 +0100 Subject: [PATCH] feat: add shortcut for alternative browser --- roles/xmonad/files/xmonad_qwerty.hs | 4 +++- roles/xmonad/files/xmonad_t460p.hs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/xmonad/files/xmonad_qwerty.hs b/roles/xmonad/files/xmonad_qwerty.hs index a05939f..4bfc543 100644 --- a/roles/xmonad/files/xmonad_qwerty.hs +++ b/roles/xmonad/files/xmonad_qwerty.hs @@ -34,6 +34,7 @@ import Control.Concurrent (threadDelay) -- variables myTerminal = "alacritty" myBrowser = "librewolf" +myAlternativeBrowser = "chromium" myBorderWidth = 1 myModMask = mod4Mask white = "#dcdccc" @@ -49,7 +50,7 @@ darkGrey = "#262626" -- scratchpads myScratchpads :: [NamedScratchpad] myScratchpads = - [ NS "cmus" "alacritty -n cmus -e cmus" (resource =? "cmus") (customFloating $ W.RationalRect (1/6) (1/6) (4/6) (4/6)) + [ NS "cmus" "alacritty -t cmus -e cmus" (title =? "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 "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)) @@ -175,6 +176,7 @@ myAdditionalKeys = -- some shortcuts for prorgrams , ("M-S-", spawnShell) , ("M-b", spawn myBrowser) + , ("M-S-b", spawn myAlternativeBrowser) -- layout , ("M-t t", switchToLayout "Tall") diff --git a/roles/xmonad/files/xmonad_t460p.hs b/roles/xmonad/files/xmonad_t460p.hs index 944238b..b63114e 100644 --- a/roles/xmonad/files/xmonad_t460p.hs +++ b/roles/xmonad/files/xmonad_t460p.hs @@ -188,6 +188,7 @@ myAdditionalKeys = -- open terminal , ("M-S-", spawnShell) , ("M-b", spawn "firefox") + , ("M-S-b", spawn "chromium") -- layout , ("M-t t", switchToLayout "Tall")