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