use wezterm instead of foot
This commit is contained in:
		| @@ -6,7 +6,7 @@ | |||||||
| }: let | }: let | ||||||
|   cfg = config.myConfig.programs; |   cfg = config.myConfig.programs; | ||||||
| in { | in { | ||||||
|   imports = [./foot.nix ./thunderbird.nix ./nextcloud.nix ./udiskie.nix]; |   imports = [./foot.nix ./thunderbird.nix ./nextcloud.nix ./udiskie.nix ./wezterm.nix]; | ||||||
|  |  | ||||||
|   options.myConfig.programs = { |   options.myConfig.programs = { | ||||||
|     enable = lib.mkEnableOption "programs for desktop use"; |     enable = lib.mkEnableOption "programs for desktop use"; | ||||||
| @@ -15,6 +15,7 @@ in { | |||||||
|   config = lib.mkIf cfg.enable { |   config = lib.mkIf cfg.enable { | ||||||
|     myConfig.programs = { |     myConfig.programs = { | ||||||
|       foot.enable = lib.mkDefault true; |       foot.enable = lib.mkDefault true; | ||||||
|  |       wezterm.enable = lib.mkDefault true; | ||||||
|       thunderbird.enable = lib.mkDefault true; |       thunderbird.enable = lib.mkDefault true; | ||||||
|       nextcloud.enable = lib.mkDefault true; |       nextcloud.enable = lib.mkDefault true; | ||||||
|       udiskie.enable = lib.mkDefault true; |       udiskie.enable = lib.mkDefault true; | ||||||
|   | |||||||
							
								
								
									
										56
									
								
								modules/home/programs/wezterm.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								modules/home/programs/wezterm.nix
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,56 @@ | |||||||
|  | { | ||||||
|  |   lib, | ||||||
|  |   config, | ||||||
|  |   ... | ||||||
|  | }: let | ||||||
|  |   cfg = config.myConfig.programs.wezterm; | ||||||
|  | in { | ||||||
|  |   options.myConfig.programs.wezterm = { | ||||||
|  |     enable = lib.mkEnableOption "wezterm, a wayland terminal emulator"; | ||||||
|  |   }; | ||||||
|  |  | ||||||
|  |   config = lib.mkIf cfg.enable { | ||||||
|  |     programs.wezterm = { | ||||||
|  |       enable = true; | ||||||
|  |       enableBashIntegration = true; | ||||||
|  |       enableZshIntegration = true; | ||||||
|  |       colorSchemes = { | ||||||
|  |         myTheme = { | ||||||
|  |           ansi = [ | ||||||
|  |             "#26211e" | ||||||
|  |             "#f75b72" | ||||||
|  |             "#67af34" | ||||||
|  |             "#c98b1a" | ||||||
|  |             "#509af6" | ||||||
|  |             "#ca64f3" | ||||||
|  |             "#1faeae" | ||||||
|  |             "#c1b7b0" | ||||||
|  |           ]; | ||||||
|  |           brights = [ | ||||||
|  |             "#585049" | ||||||
|  |             "#fb8590" | ||||||
|  |             "#75c73b" | ||||||
|  |             "#e49f27" | ||||||
|  |             "#77b1fb" | ||||||
|  |             "#d68af7" | ||||||
|  |             "#24c6c6" | ||||||
|  |             "#f2f0ef" | ||||||
|  |           ]; | ||||||
|  |           background = "#0a0807"; | ||||||
|  |           foreground = "#e6e2de"; | ||||||
|  |         }; | ||||||
|  |       }; | ||||||
|  |       extraConfig = '' | ||||||
|  |         local wezterm = require 'wezterm' | ||||||
|  |         local config = wezterm.config_builder() | ||||||
|  |  | ||||||
|  |         config.font = wezterm.font 'FiraCode Nerd Font Mono' | ||||||
|  |         config.front_end = 'WebGpu' | ||||||
|  |         config.enable_tab_bar = false | ||||||
|  |         config.color_scheme = 'myTheme' | ||||||
|  |  | ||||||
|  |         return config | ||||||
|  |       ''; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
|  | } | ||||||
| @@ -64,7 +64,7 @@ in { | |||||||
|     home.packages = with pkgs; [ |     home.packages = with pkgs; [ | ||||||
|       swaylock # screen locking |       swaylock # screen locking | ||||||
|       swayidle # automatic screen locking after system idle time |       swayidle # automatic screen locking after system idle time | ||||||
|       foot # terminal |       wezterm # terminal | ||||||
|       keepassxc # used for secrets instead of gnome-keyring |       keepassxc # used for secrets instead of gnome-keyring | ||||||
|  |  | ||||||
|       # fonts |       # fonts | ||||||
| @@ -171,11 +171,11 @@ in { | |||||||
|           }; |           }; | ||||||
|         menu = "${pkgs.nwg-launchers}/bin/nwggrid -client"; |         menu = "${pkgs.nwg-launchers}/bin/nwggrid -client"; | ||||||
|  |  | ||||||
|         # use foot as default terminal |         # use wezterm as default terminal | ||||||
|         terminal = "${pkgs.foot}/bin/foot"; |         terminal = "${pkgs.wezterm}/bin/wezterm"; | ||||||
|         assigns = { |         assigns = { | ||||||
|           "main" = [{app_id = "firefox";}]; |           "main" = [{app_id = "firefox";}]; | ||||||
|           "term" = [{app_id = "foot-startup";}]; |           "term" = [{app_id = "start-terminal";}]; | ||||||
|           "msg" = [ |           "msg" = [ | ||||||
|             {title = "\\[Locked\\] - KeePassXC$";} |             {title = "\\[Locked\\] - KeePassXC$";} | ||||||
|             {app_id = "thunderbird";} |             {app_id = "thunderbird";} | ||||||
| @@ -202,7 +202,7 @@ in { | |||||||
|             {command = "${dbus-sway-environment}/bin/dbus-sway-environment";} |             {command = "${dbus-sway-environment}/bin/dbus-sway-environment";} | ||||||
|             {command = "${pkgs.nwg-launchers}/bin/nwggrid-server -fp";} |             {command = "${pkgs.nwg-launchers}/bin/nwggrid-server -fp";} | ||||||
|             {command = "${pkgs.keepassxc}/bin/keepassxc";} |             {command = "${pkgs.keepassxc}/bin/keepassxc";} | ||||||
|             {command = "${pkgs.foot}/bin/foot -a foot-startup";} |             {command = "${pkgs.wezterm}/bin/wezterm start --class start-terminal";} | ||||||
|             {command = "${pkgs.networkmanagerapplet}/bin/nm-applet";} |             {command = "${pkgs.networkmanagerapplet}/bin/nm-applet";} | ||||||
|             {command = "${pkgs.firefox}/bin/firefox";} |             {command = "${pkgs.firefox}/bin/firefox";} | ||||||
|           ] |           ] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user