add xdopass and update gitignore
This commit is contained in:
parent
15dccb6a24
commit
f81c279b7e
3
local/bin/.gitignore
vendored
3
local/bin/.gitignore
vendored
@ -22,6 +22,9 @@ tox-quickstart
|
||||
hlint
|
||||
stylish-haskell
|
||||
unlit
|
||||
vis
|
||||
vis-*
|
||||
cabal
|
||||
|
||||
# shouldn't share this one with the world
|
||||
macaddress
|
||||
|
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…
Reference in New Issue
Block a user