summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-23 07:55:03 -0600
committerCraig Jennings <c@cjennings.net>2026-01-23 07:55:03 -0600
commit3710133b20a4dd3e54c828575964c2d3ade4930f (patch)
tree65ff3b3956f496308db2833711f6acd32a23ae34
parent9b336b17593188933306e15938399a574454f8db (diff)
fix(archsetup): add PAM config for gnome-keyring auto-unlock
Configure /etc/pam.d/login to pass login password to gnome-keyring-daemon, enabling automatic keyring unlock on console login + startx workflow.
-rwxr-xr-xarchsetup11
-rw-r--r--dotfiles/system/.Xresources1
2 files changed, 12 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index 80e0f5e..1f62c33 100755
--- a/archsetup
+++ b/archsetup
@@ -1280,6 +1280,17 @@ desktop_environment() {
chown -R "$username": "/home/$username/.local/share/keyrings"
chmod 700 "$keyring_dir"
+ # configure PAM to auto-unlock gnome-keyring on console login
+ # this passes the login password to gnome-keyring-daemon at session start
+ action="configuring PAM for gnome-keyring auto-unlock" && display "task" "$action"
+ pam_login="/etc/pam.d/login"
+ if ! grep -q "pam_gnome_keyring.so" "$pam_login"; then
+ # add auth line after the last auth line
+ sed -i '/^auth.*system-local-login/a auth optional pam_gnome_keyring.so' "$pam_login"
+ # add session line after the last session line
+ sed -i '/^session.*system-local-login/a session optional pam_gnome_keyring.so auto_start' "$pam_login"
+ fi
+
# Power Management
action="Power Management" && display "subtitle" "$action"
diff --git a/dotfiles/system/.Xresources b/dotfiles/system/.Xresources
index 7e2240a..fb81dfb 100644
--- a/dotfiles/system/.Xresources
+++ b/dotfiles/system/.Xresources
@@ -1,5 +1,6 @@
!! X Font Settings
+!! below is the framework desktop's ultrawide monitor dpi
! Xft.dpi: 192
!! below is the framework laptop dpi
! Xft.dpi: 144