diff --git a/files/systemd/user/unlock-kwallet.service b/files/systemd/user/unlock-kwallet.service new file mode 100644 index 0000000..3215bd8 --- /dev/null +++ b/files/systemd/user/unlock-kwallet.service @@ -0,0 +1,17 @@ +[Unit] +Description=Unlocks kwallet for hyprland on login. +# order startup after WM +After=graphical-session.target + +[Service] +Type=exec +# Repurpose XDG Autostart filtering +ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" "" +ExecStart=/usr/libexec/pam_kwallet_init +Slice=app-graphical.slice + +[Install] +WantedBy=graphical-session.target +# Alternatively can be wanted by specific WMs' targets +# Should also be duplicated in 'After=' to avoid ordering loop +#WantedBy=wayland-session@hyprland.desktop.target \ No newline at end of file