Use nvidia opengl

This commit is contained in:
Martin Potier 2020-10-22 09:27:11 +03:00
parent 1ac9836718
commit a8b1a0d92d
No known key found for this signature in database
GPG key ID: D4DD957DBA4AD89E
3 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ spinVimAndSt dir name =
Project { projectName = name Project { projectName = name
, projectDirectory = dir <> name , projectDirectory = dir <> name
, projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."] , 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 spinChat :: String -> Project
@ -63,12 +63,12 @@ projects = [ adminProject "wrk-config"
, Project { projectName = "xmonad" , Project { projectName = "xmonad"
, projectDirectory = "~/.xmonad/" , projectDirectory = "~/.xmonad/"
, projectStartHook = Just $ do safeSpawn "vim" ["-g", "+set guifont=Victor\\ Mono\\ SemiBold\\ 18|e ."] , 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" , Project { projectName = "status"
, projectDirectory = "/tmp" , projectDirectory = "/tmp"
, projectStartHook = Just $ do , projectStartHook = Just $ do
safeSpawn "alacritty" ["-e","gotop"] safeSpawn "nvidia-offload" ["alacritty","-e","gotop"]
} }
, Project { projectName = "email" , Project { projectName = "email"
, projectDirectory = "~/mail" , projectDirectory = "~/mail"

View file

@ -16,7 +16,7 @@ modify conf = conf
} }
pads = 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)) (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 =
$ desktopConfig -- on a default desktop config $ desktopConfig -- on a default desktop config
{ manageHook = myManageHook <+> manageHook desktopConfig { manageHook = myManageHook <+> manageHook desktopConfig
, layoutHook = desktopLayoutModifiers layouts , layoutHook = desktopLayoutModifiers layouts
, terminal = "/home/e/.nix-profile/bin/alacritty" , terminal = "nvidia-offload alacritty"
, normalBorderColor = S.base03 , normalBorderColor = S.base03
, focusedBorderColor = S.violet , focusedBorderColor = S.violet
, borderWidth = 5 , borderWidth = 5