Autostart sway when logins from tty
This commit is contained in:
parent
d0c32b3e70
commit
b7b4f5d334
2 changed files with 8 additions and 0 deletions
7
home-manager/desktop/sway/zsh-autostart.nix
Normal file
7
home-manager/desktop/sway/zsh-autostart.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
programs.zsh.loginExtra = ''
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec sway &> /dev/null
|
||||
fi
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue