Add optional autostart on tty scripts

This commit is contained in:
clsty 2024-03-31 06:21:48 +08:00
parent d93b8c0ed6
commit c93eefcaac
4 changed files with 15 additions and 4 deletions

View file

@ -0,0 +1,5 @@
# Auto start Hyprland on tty1
if test -z "$DISPLAY" ;and test "$XDG_VTNR" -eq 1
mkdir -p ~/.cache
exec Hyprland > ~/.cache/hyprland.log ^&1
end

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

View file

@ -1,7 +1,4 @@
# Created by newuser for 5.9
# Shortcuts
bindkey '^H' backward-kill-word
bindkey '^Z' undo
# Use the generated color scheme
if test -f ~/.cache/ags/user/generated/terminal/sequences.txt; then
cat ~/.cache/ags/user/generated/terminal/sequences.txt

View file

@ -0,0 +1,4 @@
# Created by newuser for 5.9
bindkey '^H' backward-kill-word
bindkey '^Z' undo