wezterm: added support for nixos specific settings
This commit is contained in:
parent
0c8337c9e4
commit
e8c3c9dfe9
|
@ -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 = {
|
||||
|
|
|
@ -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.
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue