This commit is contained in:
EEva 2022-02-19 17:24:39 +02:00
parent 964e01a3fa
commit e660118219
3 changed files with 6 additions and 15 deletions

View file

@ -6,26 +6,18 @@ import XMonad
import XMonad.Actions.DynamicProjects import XMonad.Actions.DynamicProjects
import XMonad.Util.Run import XMonad.Util.Run
term = "alacritty" term = "kitty"
spawnGuiTextEditor :: X () spawnGuiTextEditor :: X ()
spawnGuiTextEditor = safeSpawn "vim" ["-g"] spawnGuiTextEditor = safeSpawn "vim" ["-g"]
singleTermAppWithName :: String -> String -> Project singleTermAppWithName :: String -> String -> Project
singleTermAppWithName name app = Project singleTermAppWithName name app = Project
{ projectName = name { projectName = name
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do safeSpawn term ["-e","zsh","-c",app] , projectStartHook = Just $ do safeSpawn term ["zsh","-c",app]
} }
-- spinVimAndSt :: String -> String -> Project
-- spinVimAndSt dir name =
-- Project { projectName = name
-- , projectDirectory = dir <> name
-- , projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."]
-- safeSpawn "nvidia-offload" ["alacritty","-e","tmux","new","-A","-s",name]
-- }
singleAppWithName :: String -> String -> Project singleAppWithName :: String -> String -> Project
singleAppWithName name app = Project singleAppWithName name app = Project
{ projectName = name { projectName = name
@ -94,8 +86,7 @@ projects =
} }
, Project { projectName = "notes" , Project { projectName = "notes"
, projectDirectory = "~/zk" , projectDirectory = "~/zk"
, projectStartHook = Just $ do spawnGuiTextEditor , projectStartHook = Just $ do safeSpawnProg "logseq"
safeSpawnProg term
} }
, Project { projectName = "xmonad" , Project { projectName = "xmonad"
, projectDirectory = "~/.xmonad" , projectDirectory = "~/.xmonad"

View file

@ -16,7 +16,7 @@ modify conf = conf
} }
pads = pads =
[ NS "htop" "/home/eeva/.nix-profile/bin/alacritty -t htop -e tmux" (title =? "htop") [ NS "htop" "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

@ -61,7 +61,7 @@ withConfig =
$ desktopConfig -- on a default desktop config $ desktopConfig -- on a default desktop config
{ manageHook = myManageHook { manageHook = myManageHook
, layoutHook = desktopLayoutModifiers layouts , layoutHook = desktopLayoutModifiers layouts
, terminal = "/home/eeva/.nix-profile/bin/alacritty" , terminal = "kitty"
, normalBorderColor = N.backgroundhl , normalBorderColor = N.backgroundhl
, focusedBorderColor = N.nord9 , focusedBorderColor = N.nord9
, borderWidth = 5 , borderWidth = 5