diff options
author | awy <awy@awy.one> | 2024-10-28 00:13:29 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2024-10-28 00:13:29 +0300 |
commit | 881d9ed9e627501af7ecdf05f4aeaf5e69020114 (patch) | |
tree | ef10f2bd24181f29ed2f82f4beed9653886b5672 | |
parent | 2bd226d29b2d579088a0b95bcb13a8e7761a6e29 (diff) |
fix
-rw-r--r-- | .config/hypr/hyprland.conf | 3 | ||||
-rwxr-xr-x | .config/hypr/start | 6 | ||||
-rw-r--r-- | .config/zsh/.zshrc | 6 | ||||
-rw-r--r-- | dependencies.txt | 3 | ||||
-rwxr-xr-x | rice.sh | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index aecf747..7767d41 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -9,8 +9,9 @@ exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRE exec-once = pipewire & pipewire-pulse & wireplumber exec-once = start-portal exec-once = hyprpaper & dunst -exec-once = sleep 2.5 && waybar exec-once = lxqt-policykit-agent +exec-once = gpg-agent --daemon +exec-once = sleep 2.5 && waybar env = QT_SCREEN_SCALE_FACTORS,1;1 env = XCURSOR_SIZE,24 diff --git a/.config/hypr/start b/.config/hypr/start index 05c20f4..1a33484 100755 --- a/.config/hypr/start +++ b/.config/hypr/start @@ -4,10 +4,4 @@ export XDG_RUNTIME_DIR="/tmp/hyprland" mkdir -p $XDG_RUNTIME_DIR chmod 0700 $XDG_RUNTIME_DIR -gpg-connect-agent updatestartuptty /bye >/dev/null -unset SSH_AGENT_PID -if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" -fi - exec dbus-launch --exit-with-session Hyprland diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index d9a511d..a2c2dfe 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -39,7 +39,11 @@ lfcd () { } bindkey -s '^o' '^ulfcd\n' -export GPG_TTY=$(tty) +unset SSH_AGENT_PID +if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then + export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" +fi + export PASSWORD_STORE_CLIP_TIME=5 # Load syntax highlighting; should be last. source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null diff --git a/dependencies.txt b/dependencies.txt index b016a2b..92f6432 100644 --- a/dependencies.txt +++ b/dependencies.txt @@ -49,6 +49,9 @@ rofi-wayland # utilities gnupg +# pinentry-qt deps +kwindowsystem +kguiaddons openssh-dinit fakeroot lxqt-policykit @@ -41,11 +41,9 @@ rm -rf hyprdots doas -u $PERMUSER mkdir -p /home/$PERMUSER/.ssh doas -u $PERMUSER mkdir -p /home/$PERMUSER/.gnupg -doas -u $PERMUSER touch /home/$PERMUSER/.ssh/config doas -u $PERMUSER touch /home/$PERMUSER/.gnupg/gpg-agent.conf -echo 'Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"' > /home/$PERMUSER/.ssh/config echo 'enable-ssh-support' > /home/$PERMUSER/.gnupg/gpg-agent.conf -echo 'pinentry-program /usr/bin/pinentry-gtk' >> /home/$PERMUSER/.gnupg/gpg-agent.conf +echo 'pinentry-program /usr/bin/pinentry-qt' >> /home/$PERMUSER/.gnupg/gpg-agent.conf echo 'default-cache-ttl 34560000' >> /home/$PERMUSER/.gnupg/gpg-agent.conf echo 'max-cache-ttl 34560000' >> /home/$PERMUSER/.gnupg/gpg-agent.conf dinitctl enable sshd |