wezterm: added support for nixos specific settings

This commit is contained in:
Tigor Hutasuhut 2024-07-10 15:13:57 +07:00
parent 0c8337c9e4
commit e8c3c9dfe9
4 changed files with 16 additions and 2 deletions

View file

@ -181,7 +181,7 @@ in
disable_splash_rendering = true;
focus_on_activate = true;
enable_swallow = true;
swallow_regex = "^(Alacritty|kitty|footclient)$";
swallow_regex = "^(Alacritty|kitty|footclient|org\.wezfurlong\.wezterm)$";
};
animations = {

View file

@ -38,7 +38,6 @@ return {
leader = shortcuts.leader,
keys = shortcuts.keys,
key_tables = shortcuts.key_tables,
window_background_opacity = 1,
text_background_opacity = 1,
hyperlink_rules = {
-- Linkify things that look like URLs and the host has a TLD name.

View file

@ -8,8 +8,19 @@ in
enable = true;
enableZshIntegration = true;
enableBashIntegration = true;
extraConfig = /*lua*/ ''
-- take config from ./base_config.lua
local config = require('base_config')
-- and override settings for nixos specific things here.
config.window_background_opacity = ${toString cfg.config.window_background_opacity};
return config
'';
};
home.file.".config/wezterm" = {
source = ./.;
recursive = true;

View file

@ -83,6 +83,10 @@
};
easyeffects.enable = lib.mkEnableOption "easyeffects";
wezterm.enable = lib.mkEnableOption "wezterm";
wezterm.config.window_background_opacity = lib.mkOption {
type = lib.types.float;
default = 0.8;
};
};
};
}