aboutsummaryrefslogtreecommitdiff
path: root/.config/rofi-pass/config
blob: 9c81936e1d45d9a848cab608caeee05904450236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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 \
		-no-auto-select \
		-config "$XDG_CONFIG_HOME/rofi-pass/rofi.rasi" \
		"$@"
}

_do_type_xdotool() {
	fcitx5-temp-off # see ~/.local/share/bin

	# tr -d required because the "path" variable ends in a newline character
	tr -d '\n' |\
		xdotool type --delay ${type_delay} --clearmodifiers --file -
	# xdotool command is otherwise not modified

	fcitx5-temp-restore
}