switch wezterm to ghostty
This commit is contained in:
parent
3f44674aae
commit
0148c6f403
6 changed files with 10 additions and 7 deletions
hosts
modules/home-manager
configs/window-manager
programs/terminals
Binary file not shown.
Binary file not shown.
|
@ -108,7 +108,7 @@ in
|
|||
force_zero_scaling = true;
|
||||
};
|
||||
|
||||
"$terminal" = "wezterm start";
|
||||
"$terminal" = "ghostty";
|
||||
"$browser" = "librewolf";
|
||||
"$menu" = "dmenu-wl_run";
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ in
|
|||
programs.rofi.pass = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
EDITOR='wezterm start -- nvim'
|
||||
EDITOR='ghostty -e nvim'
|
||||
|
||||
URL_field='url'
|
||||
USERNAME_field='login'
|
||||
|
|
|
@ -52,7 +52,7 @@ import XMonad.Util.Run
|
|||
-- The preferred terminal program, which is used in a binding below and by
|
||||
-- certain contrib modules.
|
||||
--
|
||||
myTerminal = "wezterm start"
|
||||
myTerminal = "ghostty"
|
||||
|
||||
-- Whether focus follows the mouse pointer.
|
||||
myFocusFollowsMouse = False
|
||||
|
@ -240,9 +240,10 @@ myManageHook = manageApps
|
|||
|
||||
isGameMachine = machine =? "games"
|
||||
|
||||
isGhostty = className =? "com.mitchellh.ghostty"
|
||||
isWezterm = className =? "org.wezfurlong.wezterm"
|
||||
isAlacritty = className =? "Alacritty"
|
||||
isTerminal = anyOf [isWezterm, isAlacritty]
|
||||
isTerminal = anyOf [isWezterm, isAlacritty, isGhostty]
|
||||
|
||||
tileBelow = insertPosition Below Newer
|
||||
manageApps =
|
||||
|
@ -374,7 +375,7 @@ myKeys conf =
|
|||
("<XF86KbdBrightnessUp>", spawn (kdbBrightness "up")),
|
||||
("<XF86KbdBrightnessDown>", spawn (kdbBrightness "down"))
|
||||
]
|
||||
where kdbBrightness cmd = myTerminal ++ " -- @kdbBrightnessScriptPath@ " ++ cmd
|
||||
where kdbBrightness cmd = myTerminal ++ " -e @kdbBrightnessScriptPath@ " ++ cmd
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Mouse bindings: default actions bound to mouse events
|
||||
|
@ -402,9 +403,9 @@ myProjects =
|
|||
terminal' wd' cmd' =
|
||||
myTerminal ++ workdir ++ command
|
||||
where
|
||||
workdir = " --cwd " ++ wd'
|
||||
workdir = " --working-directory=" ++ wd'
|
||||
command = case cmd' of
|
||||
Just c -> " -- " ++ c
|
||||
Just c -> " -e " ++ c
|
||||
_ -> ""
|
||||
|
||||
myPromptConfig :: XPConfig
|
||||
|
|
|
@ -21,10 +21,12 @@ in
|
|||
package = cfg.package;
|
||||
settings = {
|
||||
theme = "nixos-theme";
|
||||
font-family = "monospace";
|
||||
font-size = cfg.fontSize;
|
||||
window-decoration = false;
|
||||
cursor-style-blink = false;
|
||||
shell-integration-features = "no-cursor";
|
||||
gtk-single-instance = false; # It required to provide working-directory
|
||||
};
|
||||
enableZshIntegration = config.programs.zsh.enable;
|
||||
themes = {
|
||||
|
|
Loading…
Add table
Reference in a new issue