23 lines
1.2 KiB
Bash
23 lines
1.2 KiB
Bash
# User defaults: login shell, file manager, mime handlers, user services.
|
|
|
|
# Login shell = zsh. The Hyprland autostart lives in ~/.zprofile, which only zsh
|
|
# reads at login; with the default bash shell you'd just land on a prompt.
|
|
if [ "$(getent passwd "$USER" | cut -d: -f7)" != /usr/bin/zsh ]; then
|
|
sudo chsh -s /usr/bin/zsh "$USER" && info "login shell set to zsh"
|
|
fi
|
|
|
|
# Default file manager = GNOME Files (Nautilus). Set explicitly so no other app
|
|
# that claims inode/directory (e.g. easytag) wins. (arch_notes.md)
|
|
xdg-mime default org.gnome.Nautilus.desktop inode/directory
|
|
|
|
# User services that ship as ~/.config/systemd/user units (from dotfiles).
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable shairport-sync.service 2>/dev/null \
|
|
&& info "enabled shairport-sync (user)" || echo " skip: shairport-sync user unit"
|
|
|
|
# Let PAM own gnome-keyring-daemon (see 02-system/20-config.sh); disable the user
|
|
# socket so it isn't also started here — avoids a double instance / double prompt.
|
|
systemctl --user disable --now gnome-keyring-daemon.socket 2>/dev/null \
|
|
&& info "disabled gnome-keyring-daemon.socket (PAM starts the daemon)" \
|
|
|| echo " skip: gnome-keyring-daemon.socket already off"
|