diff --git a/lib/Projects.hs b/lib/Projects.hs index 70f599b..c28dd75 100644 --- a/lib/Projects.hs +++ b/lib/Projects.hs @@ -11,7 +11,7 @@ spinVimAndSt dir name = Project { projectName = name , projectDirectory = dir <> name , projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."] - safeSpawn "alacritty" ["-e","tmux","new","-A","-s",name] + safeSpawn "nvidia-offload" ["alacritty","-e","tmux","new","-A","-s",name] } spinChat :: String -> Project @@ -63,12 +63,12 @@ projects = [ adminProject "wrk-config" , Project { projectName = "xmonad" , projectDirectory = "~/.xmonad/" , projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."] - safeSpawn "alacritty" ["-e","tmux","new","-A","-s","xmonad"] + safeSpawn "nvidia-offload" ["alacritty","-e","tmux","new","-A","-s","xmonad"] } , Project { projectName = "status" , projectDirectory = "/tmp" , projectStartHook = Just $ do - safeSpawn "alacritty" ["-e","gotop"] + safeSpawn "nvidia-offload" ["alacritty","-e","gotop"] } , Project { projectName = "email" , projectDirectory = "~/mail" diff --git a/lib/Scratchpad.hs b/lib/Scratchpad.hs index 2413daa..4b0320d 100644 --- a/lib/Scratchpad.hs +++ b/lib/Scratchpad.hs @@ -16,7 +16,7 @@ modify conf = conf } pads = - [ NS "htop" "/home/e/.nix-profile/bin/alacritty -t htop -e tmux" (title =? "htop") + [ NS "htop" "nvidia-offload alacritty -t htop -e tmux" (title =? "htop") (customFloating $ W.RationalRect (1/3) (1/3) (1/3) (1/3)) -- , NS "stardict" "stardict" (className =? "Stardict") -- (customFloating $ W.RationalRect (1/6) (1/6) (2/3) (2/3)) diff --git a/xmonad.hs b/xmonad.hs index 453c0ed..98da457 100755 --- a/xmonad.hs +++ b/xmonad.hs @@ -69,7 +69,7 @@ withConfig = $ desktopConfig -- on a default desktop config { manageHook = myManageHook <+> manageHook desktopConfig , layoutHook = desktopLayoutModifiers layouts - , terminal = "/home/e/.nix-profile/bin/alacritty" + , terminal = "nvidia-offload alacritty" , normalBorderColor = S.base03 , focusedBorderColor = S.violet , borderWidth = 5