Autostart sway when logins from tty
This commit is contained in:
parent
d0c32b3e70
commit
b7b4f5d334
2 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,7 @@ in {
|
||||||
./swaylock.nix
|
./swaylock.nix
|
||||||
./swayidle.nix
|
./swayidle.nix
|
||||||
./fuzzel.nix
|
./fuzzel.nix
|
||||||
|
./zsh-autostart.nix
|
||||||
] ++ (
|
] ++ (
|
||||||
if hostConfig.laptop then
|
if hostConfig.laptop then
|
||||||
[ ./kanshi.nix ]
|
[ ./kanshi.nix ]
|
||||||
|
|
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