Login directly

This commit is contained in:
David Heinemeier Hansson
2025-06-02 21:22:23 +02:00
parent 4091127556
commit 0ff32c7936
2 changed files with 10 additions and 2 deletions

View File

@ -4,8 +4,13 @@ cp -R ~/.local/share/omarchy/config/* ~/.config/
# Use default bashrc from Omarchy
echo "source ~/.local/share/omarchy/default/bash/rc" >~/.bashrc
# Start Hyprland on first session
echo "[[ -z $DISPLAY && $(tty) == /dev/tty1 ]] && exec Hyprland" >~/.bash_profile
# Login directly as user, rely on disk encryption + hyprlock for security
sudo mkdir -p /etc/systemd/system/getty@tty1.service.d
sudo tee /etc/systemd/system/getty@tty1.service.d/override.conf >/dev/null <<EOF
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin $USER --noclear %I \$TERM
EOF
# Set common git aliases
git config --global alias.co checkout

View File

@ -2,3 +2,6 @@ yay -S --noconfirm --needed \
hyprland hyprpaper hyprshot hyprlock hypridle hyprpolkitagent hyprland-qtutils \
waybar swaync \
xdg-desktop-portal-hyprland
# Start Hyprland on first session
echo "[[ -z $DISPLAY && $(tty) == /dev/tty1 ]] && exec Hyprland" >~/.bash_profile