fix(sway): Change default terminal to alacritty

Wezterm doesn't work well in sway-git
This commit is contained in:
Jalil David Salamé Messina 2024-01-21 21:09:39 +01:00
parent c9b2415384
commit 0430bc9878
Signed by: jalil
GPG key ID: F016B9E770737A0B
3 changed files with 26 additions and 12 deletions

View file

@ -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