Switch back to wezterm since I figured out how to enable undercurl

Simplify wezterm config somewhat
This commit is contained in:
Evie Litherland-Smith 2023-07-03 17:36:55 +01:00
parent 8d6c0cb8b8
commit 3d38e32e83
5 changed files with 36 additions and 36 deletions

View file

@ -25,7 +25,7 @@
"Pavucontrol".state = "floating"; "Pavucontrol".state = "floating";
"Otpclient".state = "floating"; "Otpclient".state = "floating";
".blueman-manager-wrapped".state = "floating"; ".blueman-manager-wrapped".state = "floating";
"Alacritty".desktop = "dev"; "org.wezfurlong.wezterm".desktop = "dev";
"firefox".desktop = "browser"; "firefox".desktop = "browser";
"Thunar".desktop = "files"; "Thunar".desktop = "files";
"Element".desktop = "chat"; "Element".desktop = "chat";

View file

@ -13,7 +13,7 @@ in {
enable = true; enable = true;
location = "center"; location = "center";
pass.enable = true; pass.enable = true;
terminal = "alacritty"; terminal = "wezterm";
extraConfig = { extraConfig = {
modi = "drun"; modi = "drun";
icon-theme = icon-theme; icon-theme = icon-theme;

View file

@ -3,7 +3,7 @@
enable = true; enable = true;
keybindings = { keybindings = {
# Terminal emulators # Terminal emulators
"super + Return" = "alacritty"; "super + Return" = "wezterm";
"super + shift + Return" = "xfce4-terminal --drop-down"; "super + shift + Return" = "xfce4-terminal --drop-down";
# Launcher # Launcher

View file

@ -1,7 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./firefox.nix ./firefox.nix
./alacritty.nix ./wezterm.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
neovide neovide

View file

@ -2,40 +2,40 @@
programs.wezterm = { programs.wezterm = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
local wezterm = require "wezterm" -- Pull in the wezterm API
local tab_bar_style = require "tab_bar_style" local wezterm = require 'wezterm'
local scheme_name = "tokyonight_night"
local scheme = require("wezterm").color.get_builtin_schemes()[scheme_name]
tab_bar_style.setup(scheme)
return { -- This table will hold the configuration.
audible_bell = "Disabled", local config = {}
font_size = 14,
window_background_opacity = 0.80, -- In newer versions of wezterm, use the config_builder which will
macos_window_background_blur = 20, -- help provide clearer error messages
color_scheme = scheme_name, if wezterm.config_builder then
use_fancy_tab_bar = false, config = wezterm.config_builder()
tab_max_width = 79, end
tab_bar_style = { new_tab = tab_bar_style.new_tab(scheme), new_tab_hover = tab_bar_style.new_tab_hover(scheme) },
hide_tab_bar_if_only_one_tab = true, -- This is where you actually apply your config choices
hide_mouse_cursor_when_typing = false, config.set_environment_variables = {
disable_default_key_bindings = true, TERMINFO_DIRS = '/home/user/.nix-profile/share/terminfo',
keys = require "keys", WSLENV = 'TERMINFO_DIRS',
key_tables = require "key_tables", }
use_dead_keys = false, config.term = "wezterm"
enable_scroll_bar = false, config.audible_bell = "Disabled"
enable_wayland = true, config.font_size = 14
window_padding = { config.window_background_opacity = 0.80
config.macos_window_background_blur = 20
config.color_scheme = "tokyonight_night"
config.hide_tab_bar_if_only_one_tab = true
config.hide_mouse_cursor_when_typing = true
config.window_padding = {
left = 10, left = 10,
right = 10, right = 10,
top = 10, top = 10,
bottom = 10, bottom = 10,
},
} }
-- and finally, return the configuration to wezterm
return config
''; '';
}; };
xdg.configFile."wezterm" = {
source = ./config/wezterm;
recursive = true;
};
} }