mirror of
https://github.com/swaywm/sway.git
synced 2025-02-27 03:31:20 +00:00
Faster and more reliable method of retrieving the TTY file descriptor.
parent
a2f40c5b61
commit
138991f150
1 changed files with 1 additions and 1 deletions
2
Home.md
2
Home.md
|
@ -20,7 +20,7 @@ You can start sway automatically without a login manager, for example, by adding
|
|||
|
||||
```bash
|
||||
# If running from tty1 start sway
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
if [ "$TTY" = "/dev/tty1" ]; then
|
||||
exec sway
|
||||
fi
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue