From 2a7d8cecace432898722b0d2c7a2543e1057cf74 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 8 Apr 2020 03:50:15 +0300 Subject: pam-gnupg fix. too problematic to move gnupg config folder out of ~ --- dotfiles/.config/sway/config | 4 ++-- dotfiles/.profile | 1 - system/pam.d/system-local-login | 8 ++++++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 system/pam.d/system-local-login diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config index 8a4c445..31c2ce0 100644 --- a/dotfiles/.config/sway/config +++ b/dotfiles/.config/sway/config @@ -182,8 +182,8 @@ bindsym --to-code { $mod+Shift+F7 exec mpc seek +10 # Start Applications - $mod+Shift+w exec --no-startup-id $browser - $mod+Ctrl+w exec --no-startup-id chromium + $mod+Shift+w exec $browser + $mod+Ctrl+w exec chromium $mod+F2 exec menumako $mod+F3 exec menudisplay $mod+F4 exec menublk diff --git a/dotfiles/.profile b/dotfiles/.profile index 5687e0a..d849ada 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -25,7 +25,6 @@ eval "$(sed 's/^[^#].*/export &/g;t;d' ~/.config/user-dirs.dirs)" export LESSHISTFILE="-" export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export INPUTRC="$XDG_CONFIG_HOME/zsh/inputrc" -export GNUPGHOME="$XDG_DATA_HOME/gnupg" export CARGO_HOME="$XDG_DATA_HOME/cargo" export RUSTUP_HOME="$XDG_DATA_HOME/rustup" export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store" diff --git a/system/pam.d/system-local-login b/system/pam.d/system-local-login new file mode 100644 index 0000000..397539d --- /dev/null +++ b/system/pam.d/system-local-login @@ -0,0 +1,8 @@ +#%PAM-1.0 + +auth include system-login +auth optional pam_gnupg.so +account include system-login +password include system-login +session include system-login +session optional pam_gnupg.so -- cgit v1.2.3