mirror of
https://github.com/Luzifer/password.git
synced 2024-11-09 01:40:04 +00:00
129 lines
3.2 KiB
Text
129 lines
3.2 KiB
Text
<?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>bundleid</key>
|
|
<string>me.knut.pwd</string>
|
|
<key>category</key>
|
|
<string>Tools</string>
|
|
<key>connections</key>
|
|
<dict>
|
|
<key>F8CBCF9B-3B33-400E-B6AD-6B8500938BA4</key>
|
|
<array>
|
|
<dict>
|
|
<key>destinationuid</key>
|
|
<string>F417810A-4CC7-4844-9B6E-DA2D6B40543C</string>
|
|
<key>modifiers</key>
|
|
<integer>0</integer>
|
|
<key>modifiersubtext</key>
|
|
<string></string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>createdby</key>
|
|
<string>Knut Ahlers</string>
|
|
<key>description</key>
|
|
<string>Generate secure passwords using Luzifer/password tool</string>
|
|
<key>disabled</key>
|
|
<false/>
|
|
<key>name</key>
|
|
<string>Password Generator</string>
|
|
<key>objects</key>
|
|
<array>
|
|
<dict>
|
|
<key>config</key>
|
|
<dict>
|
|
<key>autopaste</key>
|
|
<false/>
|
|
<key>clipboardtext</key>
|
|
<string>{query}</string>
|
|
</dict>
|
|
<key>type</key>
|
|
<string>alfred.workflow.output.clipboard</string>
|
|
<key>uid</key>
|
|
<string>F417810A-4CC7-4844-9B6E-DA2D6B40543C</string>
|
|
<key>version</key>
|
|
<integer>0</integer>
|
|
</dict>
|
|
<dict>
|
|
<key>config</key>
|
|
<dict>
|
|
<key>argumenttype</key>
|
|
<integer>1</integer>
|
|
<key>escaping</key>
|
|
<integer>0</integer>
|
|
<key>keyword</key>
|
|
<string>pwd</string>
|
|
<key>queuedelaycustom</key>
|
|
<integer>1</integer>
|
|
<key>queuedelayimmediatelyinitially</key>
|
|
<false/>
|
|
<key>queuedelaymode</key>
|
|
<integer>0</integer>
|
|
<key>queuemode</key>
|
|
<integer>1</integer>
|
|
<key>runningsubtext</key>
|
|
<string>Generating password...</string>
|
|
<key>script</key>
|
|
<string>import subprocess, sys
|
|
from feedback import Feedback
|
|
|
|
password_length = 20
|
|
use_special = False
|
|
|
|
for arg in '{query}'.split():
|
|
if arg.isdigit():
|
|
password_length = int(arg)
|
|
elif arg == 's':
|
|
use_special = True
|
|
|
|
if password_length < 5 or password_length > 128:
|
|
fb = Feedback()
|
|
fb.add_item(title="Password length out of bounds", subtitle="Please use a reasonable password length between 5 and 128")
|
|
print fb
|
|
sys.exit(1)
|
|
|
|
command = ["./password", "get", "-l", str(password_length)]
|
|
if use_special:
|
|
command.append("-s")
|
|
result = subprocess.check_output(command).strip()
|
|
|
|
fb = Feedback()
|
|
fb.add_item(title=result, arg=result)
|
|
print fb</string>
|
|
<key>subtext</key>
|
|
<string>Generates a secure password with <n> length</string>
|
|
<key>title</key>
|
|
<string>Password Generator</string>
|
|
<key>type</key>
|
|
<integer>3</integer>
|
|
<key>withspace</key>
|
|
<true/>
|
|
</dict>
|
|
<key>type</key>
|
|
<string>alfred.workflow.input.scriptfilter</string>
|
|
<key>uid</key>
|
|
<string>F8CBCF9B-3B33-400E-B6AD-6B8500938BA4</string>
|
|
<key>version</key>
|
|
<integer>0</integer>
|
|
</dict>
|
|
</array>
|
|
<key>readme</key>
|
|
<string></string>
|
|
<key>uidata</key>
|
|
<dict>
|
|
<key>F417810A-4CC7-4844-9B6E-DA2D6B40543C</key>
|
|
<dict>
|
|
<key>ypos</key>
|
|
<real>170</real>
|
|
</dict>
|
|
<key>F8CBCF9B-3B33-400E-B6AD-6B8500938BA4</key>
|
|
<dict>
|
|
<key>ypos</key>
|
|
<real>170</real>
|
|
</dict>
|
|
</dict>
|
|
<key>webaddress</key>
|
|
<string>https://github.com/Luzifer/password</string>
|
|
</dict>
|
|
</plist>
|