Switch to kitty

This commit is contained in:
Martin Potier 2021-12-15 12:38:09 +02:00
parent 29a3874b34
commit 8d1c03a862
No known key found for this signature in database
GPG key ID: D4DD957DBA4AD89E
4 changed files with 11 additions and 7 deletions

View file

@ -75,6 +75,9 @@ modify conf = conf
-- resizing the master/slave ratio -- resizing the master/slave ratio
, ("M-h", sendMessage Shrink) -- Shrink the master area , ("M-h", sendMessage Shrink) -- Shrink the master area
, ("M-l", sendMessage Expand) -- Expand the master area , ("M-l", sendMessage Expand) -- Expand the master area
-- dunstctl calls
, ("C-<Space>", spawn "dunstctl close")
, ("C-S-<Space>", spawn "dunstctl close-all")
] ]

View file

@ -10,8 +10,8 @@ spinTextEditorAndTerm :: String -> String -> Project
spinTextEditorAndTerm dir name = spinTextEditorAndTerm dir name =
Project { projectName = name Project { projectName = name
, projectDirectory = dir <> name , projectDirectory = dir <> name
, projectStartHook = Just $ do safeSpawn "emacsclient" ["-c"] , projectStartHook = Just
safeSpawn "nvidia-offload" ["alacritty","-e","tmux","new","-A","-s",name] $ safeSpawn "nvidia-offload" ["kitty","tmux","new","-A","-s",name]
} }
spinChat :: String -> Project spinChat :: String -> Project
@ -25,7 +25,7 @@ spinInTermWithName :: String -> String -> Project
spinInTermWithName projectName cmd = spinInTermWithName projectName cmd =
Project { projectName = projectName Project { projectName = projectName
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do safeSpawn "alacritty" ["-e", cmd] , projectStartHook = Just $ do safeSpawn "kitty" [cmd]
} }
spinInTerm :: String -> Project spinInTerm :: String -> Project
@ -48,6 +48,7 @@ projects = [ adminProject "wrk-config"
, adminProject "overlays-personal" , adminProject "overlays-personal"
, candyProject "dhall-packages" , candyProject "dhall-packages"
, candyProject "hfdb" , candyProject "hfdb"
, candyProject "adventofcode"
, justStart "obs" , justStart "obs"
, justStart "m8c" , justStart "m8c"
, spinChat "element" , spinChat "element"
@ -55,7 +56,7 @@ projects = [ adminProject "wrk-config"
, spinChat "wire" , spinChat "wire"
, spinInTerm "k9s" , spinInTerm "k9s"
, spinInTermWithName "email" "neomutt" , spinInTermWithName "email" "neomutt"
, spinTextEditorAndTerm "~/.xmonad" "xmonad" , spinTextEditorAndTerm "~/." "xmonad" -- Dark magic!
, workProject "azure-core-infra" , workProject "azure-core-infra"
, workProject "azure-kube-platform" , workProject "azure-kube-platform"
, workProject "bob-the-builder" , workProject "bob-the-builder"
@ -107,7 +108,7 @@ projects = [ adminProject "wrk-config"
, Project { projectName = "status" , Project { projectName = "status"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do , projectStartHook = Just $ do
safeSpawn "nvidia-offload" ["alacritty","-e","gotop"] safeSpawn "nvidia-offload" ["kitty","gotop"]
} }
, Project { projectName = "frs" , Project { projectName = "frs"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"

View file

@ -16,7 +16,7 @@ modify conf = conf
} }
pads = pads =
[ NS "htop" "nvidia-offload alacritty -t htop -e tmux" (title =? "htop") [ NS "htop" "nvidia-offload kitty --title htop tmux" (title =? "htop")
(customFloating $ W.RationalRect (1/3) (1/3) (1/3) (1/3)) (customFloating $ W.RationalRect (1/3) (1/3) (1/3) (1/3))
-- , NS "stardict" "stardict" (className =? "Stardict") -- , NS "stardict" "stardict" (className =? "Stardict")
-- (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3)) -- (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3))

View file

@ -69,7 +69,7 @@ withConfig =
{ manageHook = myManageHook <+> manageHook desktopConfig { manageHook = myManageHook <+> manageHook desktopConfig
, layoutHook = desktopLayoutModifiers layouts , layoutHook = desktopLayoutModifiers layouts
, startupHook = spawnOnce "sh ~/.fehbg" , startupHook = spawnOnce "sh ~/.fehbg"
, terminal = "nvidia-offload alacritty" , terminal = "nvidia-offload kitty"
, normalBorderColor = S.base03 , normalBorderColor = S.base03
, focusedBorderColor = S.violet , focusedBorderColor = S.violet
, borderWidth = 5 , borderWidth = 5