fix(sway): Change default terminal to alacritty
Wezterm doesn't work well in sway-git
This commit is contained in:
parent
c9b2415384
commit
0430bc9878
3 changed files with 26 additions and 12 deletions
|
@ -37,13 +37,14 @@ in
|
|||
programs.waybar.systemd.enable = true;
|
||||
programs.waybar.settings = import ./waybar-settings.nix { inherit config lib; };
|
||||
# Terminal
|
||||
programs.wezterm.enable = true;
|
||||
programs.wezterm.enable = cfg.terminal == "wezterm";
|
||||
programs.wezterm.extraConfig = ''
|
||||
config = {}
|
||||
config.hide_tab_bar_if_only_one_tab = true
|
||||
config.window_padding = { left = 1, right = 1, top = 1, bottom = 1 }
|
||||
return config
|
||||
'';
|
||||
programs.alacritty.enable = cfg.terminal == "alacritty";
|
||||
# PDF reader
|
||||
programs.zathura.enable = true;
|
||||
# Auto start sway
|
||||
|
|
|
@ -2,8 +2,15 @@
|
|||
let
|
||||
cfg = config.jhome.gui.sway;
|
||||
modifier = "Mod4";
|
||||
terminal = "wezterm";
|
||||
menu = "${pkgs.fuzzel}/bin/fuzzel --terminal 'wezterm start'";
|
||||
terminal = config.jhome.gui.terminal;
|
||||
termCmd =
|
||||
if terminal == "wezterm" then
|
||||
"wezterm start"
|
||||
else if terminal == "alacritty" then
|
||||
"alacritty -e"
|
||||
else
|
||||
builtins.abort "no command configured for ${terminal}";
|
||||
menu = "${pkgs.fuzzel}/bin/fuzzel --terminal '${termCmd}'";
|
||||
# currently, there is some friction between sway and gtk:
|
||||
# https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland
|
||||
# the suggested way to set gtk settings is with gsettings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue