From c93eefcaac045613736ab2b889db957cad1029c9 Mon Sep 17 00:00:00 2001 From: clsty Date: Sun, 31 Mar 2024 06:21:48 +0800 Subject: [PATCH] Add optional autostart on tty scripts --- .config/zshrc.d/auto-Hypr.fish | 5 +++++ .config/zshrc.d/auto-Hypr.sh | 5 +++++ .config/zshrc.d/dots-hyprland.zsh | 5 +---- .config/zshrc.d/shortcuts.zsh | 4 ++++ 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 .config/zshrc.d/auto-Hypr.fish create mode 100644 .config/zshrc.d/auto-Hypr.sh create mode 100644 .config/zshrc.d/shortcuts.zsh diff --git a/.config/zshrc.d/auto-Hypr.fish b/.config/zshrc.d/auto-Hypr.fish new file mode 100644 index 00000000..c3c1890f --- /dev/null +++ b/.config/zshrc.d/auto-Hypr.fish @@ -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 diff --git a/.config/zshrc.d/auto-Hypr.sh b/.config/zshrc.d/auto-Hypr.sh new file mode 100644 index 00000000..55eca5e0 --- /dev/null +++ b/.config/zshrc.d/auto-Hypr.sh @@ -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 diff --git a/.config/zshrc.d/dots-hyprland.zsh b/.config/zshrc.d/dots-hyprland.zsh index 98b695df..087f6586 100644 --- a/.config/zshrc.d/dots-hyprland.zsh +++ b/.config/zshrc.d/dots-hyprland.zsh @@ -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 diff --git a/.config/zshrc.d/shortcuts.zsh b/.config/zshrc.d/shortcuts.zsh new file mode 100644 index 00000000..bd9b7e03 --- /dev/null +++ b/.config/zshrc.d/shortcuts.zsh @@ -0,0 +1,4 @@ +# Created by newuser for 5.9 + +bindkey '^H' backward-kill-word +bindkey '^Z' undo