aboutsummaryrefslogtreecommitdiff
path: root/home/dot_config/rofi-pass/config
blob: 3c8ff0092d38cbfd8086ce874d3961eb6ac87889 (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
#!/bin/sh
# make sure the filename is used as the account name
default_user=':filename'
type_delay=0

# 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
}