[fish] Run sway right from tty1 as we used to with zsh

This commit is contained in:
Sebastian Schulze 2022-04-04 11:24:08 +02:00
parent f5167ef4d3
commit b4cb2c8a4d
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 5 additions and 0 deletions

View File

@ -243,6 +243,11 @@ in
programs.fish.package = unstable.pkgs.fish;
programs.fish.enable = true;
programs.fish.loginShellInit = ''
if [ (/run/current-system/sw/bin/tty) = "/dev/tty1" ]
exec sway-run
end
'';
programs.fish.shellInit = ''
set -U fish_greeting
fzf_configure_bindings