Jump to content

paulw

Member
  • Posts

    128
  • Joined

  • Last visited

  • Days Won

    6

paulw last won the day on January 15

paulw had the most liked content!

Recent Profile Visitors

1,587 profile views

paulw's Achievements

Member

Member (4/5)

16

Reputation

  1. Nice work. Is there any way to update the menubar icon as well?
  2. @deanishe@lmrdaddy, thanks for that info and feedback. I'm continuing to use it. And this workflow, as well.
  3. Got it, thanks for explaining. Good to know also about why not to use a browser's password management as well. The convenience of the Bitwarden browser extension is nice. Do you think the developers' blunder is enough not to trust using it now?
  4. @deanishe Could you explain the "idiots" comment re the Bitwarden browser extension? I looked through the linked discussion, but I'm not savvy enough to understand what the problem is.
  5. Thanks for this workflow. I just started using 2Do again, and your workflow is a nice addition!
  6. You have a typo in your code: big_sur_dnd_prefs (plural) is defined, but then the singular big_sur_dnd_pref is used. Edit: But it works when I manually edit the typo!
  7. Happy to help! I imagine delving into the bplist a bit more would allow you to re-enable the time-limited DND of your workflow, but I haven't looked into it yet.
  8. @troycurtisjr With help from someone on reddit, I was able to cobble together code that tests for Do Not Disturb status on Big Sur. The plist file ~/Library/Preferences/com.apple.ncprefs contains a plist item dnd_prefs. That item contains a base64-encoded binary plist (bplist). When that is decoded, if DND is enabled, it would look something like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>dndDisplayLock</key> <false/> <key>dndDisplaySleep</key> <false/> <key>dndMirrored</key> <false/> <key>facetimeCanBreakDND</key> <false/> <key>repeatedFacetimeCallsBreaksDND</key> <false/> <key>userPref</key> <dict> <key>date</key> <date>2021-01-15T04:35:29Z</date> <key>enabled</key> <true/> <key>reason</key> <integer>1</integer> </dict> </dict> </plist> The presence of the <key>userPref</key> and the <key>enabled</key> within the adjacent <dict></dict> indicate DND is enabled. So the following code produces 1 if DND is enabled, and 0 if it is disabled: #!/bin/zsh dnd_enabled=$(plutil -extract dnd_prefs xml1 -o - ~/Library/Preferences/com.apple.ncprefs.plist | xpath -q -e 'string(//data)' | base64 -D | plutil -convert xml1 - -o - | xpath -q -e 'boolean(//key[text()="userPref"]/following-sibling::dict/key[text()="enabled"])') echo $dnd_enabled Note: there seems to often be a lag time of a few seconds before the result reflects any change to DND. Feel free to incorporate that in your workflow.
  9. Ah, ok, thanks for explaining that. I suppose viewing the secure note content in the workflow would compromise security you've built into the app? What about an option to "View in Bitwarden"—whether the Desktop app or online?
  10. I just started using this extension, thanks so much @blacs30 for developing it! Suggestion for the future—could you add an option to display details of an item in the vault? For example, I might want to view the contents of a note, or even copy and paste a portion of an item.
  11. Go to the workflow environment variables, and change "2FA_ENABLED" from to "true" to "false", and then you can log in.
  12. This is a great idea. Thanks for making this workflow!
  13. Thanks, @deanishe. And Thanks, @dfay, I'll look into this option, since I do have Hazel.
  14. The Remote app can't do that, but I would also love a way to sync clipboard history and snippets between iOS and Alfred. I found this old reference to a Workflow (now Shortcuts app), but the link is for the old Workflow app and doesn't work. [Edit: it does work actually] And there's also this python script by @deanishe for one-way syncing iOS snippets to Alfred.
  15. @deanishe this is really cool! Do you think it would be feasible to make it a two-way sync by adding Alfred snippets (perhaps only ones with a particular tag) to ~/Library/KeyboardServices/TextReplacements.db with SQLite queries?
×
×
  • Create New...