Skip to content

Lock 1password right away, not after unlock#644

Merged
dhh merged 1 commit into
basecamp:masterfrom
RaphaelKimmig:fix-1password-lock
Aug 11, 2025
Merged

Lock 1password right away, not after unlock#644
dhh merged 1 commit into
basecamp:masterfrom
RaphaelKimmig:fix-1password-lock

Conversation

@RaphaelKimmig
Copy link
Copy Markdown
Contributor

@RaphaelKimmig RaphaelKimmig commented Aug 11, 2025

My previous script here had an error, it would only lock 1password once the lockscreen was terminated.

We still want to lock the screen first, but we mustn't wait for hyprlock to exit.

I've also backgrounded the 1password lock call, no need to wait for that either.

@dhh
Copy link
Copy Markdown
Member

dhh commented Aug 11, 2025

I think we need setsid too, so it doesn't quit when the shell running this script is done?

@RaphaelKimmig
Copy link
Copy Markdown
Contributor Author

From what I understand that is only necessary for interactive sessions. I think the process is orphaned and then inherited by init (systemd). In my local testing it definitively stays alive.

@RaphaelKimmig
Copy link
Copy Markdown
Contributor Author

Maybe it would be good to do it anyway, in case someone runs this from an interactive terminal session?

@dhh dhh merged commit 76c7956 into basecamp:master Aug 11, 2025
@dhh
Copy link
Copy Markdown
Member

dhh commented Aug 11, 2025

You're right, I don't think we need this.

dhh pushed a commit to ryanrhughes/omarchy that referenced this pull request Aug 22, 2025
marcinczenko pushed a commit to marcinczenko/omarchy that referenced this pull request Sep 23, 2025
chriopter pushed a commit to chriopter/omarchy that referenced this pull request Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants