summaryrefslogtreecommitdiff
path: root/bin/guiscripts/fillpass
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-05-27 14:19:09 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-05-27 14:19:09 +0200
commitf0dd78002892ace7c61521c6ceeb6660d391ca70 (patch)
treedb17be4927e4359cd1a5760a76c11c6182429a78 /bin/guiscripts/fillpass
parentf32fc8b9eb8303d1ca2e1cc17773bc44d38fff3d (diff)
parentf073720476b2bc19346049e4f2c774469289410f (diff)
Merge remote-tracking branch 'origin/main'
Diffstat (limited to 'bin/guiscripts/fillpass')
-rwxr-xr-xbin/guiscripts/fillpass8
1 files changed, 8 insertions, 0 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