Add optional autostart on tty scripts

This commit is contained in:
clsty
2024-03-31 06:21:48 +08:00
parent a225331afe
commit b0fc49f392
4 changed files with 15 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
# Auto start Hyprland on tty1
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then
mkdir -p ~/.cache
exec Hyprland > ~/.cache/hyprland.log 2>&1
fi