add xdopass and update gitignore
This commit is contained in:
parent
15dccb6a24
commit
f81c279b7e
2 changed files with 14 additions and 0 deletions
11
local/bin/xdopass
Executable file
11
local/bin/xdopass
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
window="$(xdotool getwindowfocus)"
|
||||
|
||||
alias_="$(zenity --password --title="Password Calculator - Alias" 2> /dev/null)"
|
||||
secret="$(zenity --password --title="Password Calculator - Secret" 2> /dev/null)"
|
||||
|
||||
pass="$(echo -n "$secret$alias_" | shasum | sed 's/../\\\\x&/g' | xargs echo -e | base64 -w16 | head -1)"
|
||||
|
||||
xdotool type --window "$window" "$pass"
|
||||
xdotool windowfocus "$window"
|
Loading…
Add table
Add a link
Reference in a new issue