aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-28 15:18:41 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-28 15:18:41 +0100
commitcd3a460d9a9f8d062719bd04a63692d5d52e0a66 (patch)
tree6e9ef2c07038f9b13e1e1735e9c7981ce3058b98
parent16b976a10baa8848b6bffb35ab5b205cbc7af286 (diff)
temporarily turn off fcitx5 for typing password with xdotool
-rw-r--r--.config/rofi-pass/config15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/rofi-pass/config b/.config/rofi-pass/config
index e92b050..595fb51 100644
--- a/.config/rofi-pass/config
+++ b/.config/rofi-pass/config
@@ -1,5 +1,10 @@
#!/bin/sh
+# make sure the filename is used as the account name
USERNAME_field='path'
+default_user=':filename'
+default_autotype="path :tab pass"
+
+# pass custom rofi flags
_rofi() {
rofi \
-i \
@@ -7,3 +12,13 @@ _rofi() {
-config "$XDG_CONFIG_HOME/rofi-pass/rofi.rasi" \
"$@"
}
+
+_do_type_xdotool() {
+ fcitx5-temp-off
+
+ # this is the default command
+ xdotool type --delay ${type_delay} --clearmodifiers --file -
+
+ fcitx5-temp-restore
+}
+