Replace kitty with wezterm
- I'm not entirely happy so I'll probably switch again soon
diff --git a/modules/kitty.nix b/modules/kitty.nix
deleted file mode 100644
index 10f7dee..0000000
--- a/modules/kitty.nix
+++ /dev/null
@@ -1,28 +0,0 @@
-{ pkgs, ... }: {
- home = {
- programs.kitty = {
- enable = true;
-
- theme = "One Half Dark";
-
- settings = {
- enable_audio_bell = "no";
- visual_bell_duration = "0.1";
- symbol_map = "U+E0A0-U+E0A3 PowerlineSymbols";
- disable_ligatures = "cursor";
- };
- };
- programs.zsh.initExtra = ''
- if test -n "$KITTY_INSTALLATION_DIR"; then
- export KITTY_SHELL_INTEGRATION="enabled"
- autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
- kitty-integration
- unfunction kitty-integration
- fi
- '';
-
- home.shellAliases = {
- icat = "${pkgs.kitty}/bin/kitty +kitten icat";
- };
- };
-}
diff --git a/modules/ssh.nix b/modules/ssh.nix
index 743c207..585191c 100644
--- a/modules/ssh.nix
+++ b/modules/ssh.nix
@@ -46,7 +46,7 @@
};
home.shellAliases = {
- ssh = "kitty +kitten ssh";
+ ssh = "wezterm ssh";
};
};
}
diff --git a/modules/wezterm.nix b/modules/wezterm.nix
new file mode 100644
index 0000000..b2cf6fe
--- /dev/null
+++ b/modules/wezterm.nix
@@ -0,0 +1,52 @@
+{ pkgs, ... }: {
+ home = {
+ programs.wezterm = {
+ enable = true;
+
+ extraConfig = ''
+ return {
+ color_scheme = "OneHalfDark",
+ visual_bell = {
+ fade_in_duration_ms = 50,
+ fade_out_duration_ms = 50,
+ },
+ window_padding = {
+ left = '0.5cell',
+ right = '0.5cell',
+ top = '3px',
+ bottom = '3px',
+ },
+ hide_tab_bar_if_only_one_tab = true,
+ window_frame = {
+ active_titlebar_bg = '#313640',
+ inactive_titlebar_bg = '#313640',
+ },
+ colors = {
+ tab_bar = {
+ inactive_tab = {
+ bg_color = '#474e5d',
+ fg_color = 'white',
+ },
+ new_tab = {
+ bg_color = '#474e5d',
+ fg_color = 'white',
+ },
+ active_tab = {
+ bg_color = '#98c379',
+ fg_color = '#474e5d',
+ },
+ },
+ },
+ default_cursor_style = 'BlinkingBar',
+ cursor_blink_rate = 600,
+ cursor_blink_ease_in = 'Constant',
+ cursor_blink_ease_out = 'Constant',
+ }
+ '';
+ };
+ home.shellAliases = {
+ icat = "wezterm imgcat";
+ imgcat = "wezterm imgcat";
+ };
+ };
+}
diff --git a/modules/xmonad/xmonad.hs b/modules/xmonad/xmonad.hs
index 553522c..eaa4034 100644
--- a/modules/xmonad/xmonad.hs
+++ b/modules/xmonad/xmonad.hs
@@ -51,7 +51,7 @@
volumeChangeCmd = "${{./vol_change.py}}"
-terminal = "/usr/bin/env SHLVL=0 kitty" -- Kitty, my beloved <3
+terminal = "/usr/bin/env SHLVL=0 wezterm"
launcher = "pkill rofi; rofi -show combi"
networkManager = "wpa_cli select_network $(wpa_cli list_networks | tail -n +3 | awk '!seen[$2]++' | rofi -dmenu -window-title 'Select Network' | awk '{print $1;}')"