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";
"Otpclient".state = "floating";
".blueman-manager-wrapped".state = "floating";
"Alacritty".desktop = "dev";
"org.wezfurlong.wezterm".desktop = "dev";
"firefox".desktop = "browser";
"Thunar".desktop = "files";
"Element".desktop = "chat";

View file

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

View file

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

View file

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

View file

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