diff options
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/fillpass | 8 | ||||
-rwxr-xr-x | bin/guiscripts/lh | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/guiscripts/fillpass b/bin/guiscripts/fillpass index 358afd1..ea2246a 100755 --- a/bin/guiscripts/fillpass +++ b/bin/guiscripts/fillpass @@ -1,5 +1,11 @@ #!/bin/sh +if [ "colemak" = "$(setxkbmap -query | awk '/^variant:/ {print $2}')" ] +then + cycleKB + cycle=1 +fi +# assume we are using colemak pass="$( find "${PASSWORD_STORE_DIR:=~/src/password-store/}" -name "*.gpg" | sed -e "s@$PASSWORD_STORE_DIR/@@" -e 's/\.gpg$//' | @@ -13,3 +19,5 @@ if [ "$login" ] then printf '%s\t%s\n' "$login" "$password" | ydotool type -f - else printf '%s\n' "$password" | ydotool type -f - fi + +[ "$cycle" ] && cycleKB diff --git a/bin/guiscripts/lh b/bin/guiscripts/lh index ed5af47..ba39ec0 100755 --- a/bin/guiscripts/lh +++ b/bin/guiscripts/lh @@ -8,7 +8,6 @@ [ "${url:=$1}" ] || url="$(clipo)" notify-send "linkhandler" "$url" -echo "$url" > ~/file.txt case "$url" in file://*) |