config (2215B)
1 # permanently set alternative root dir. Use ":" to separate multiple roots 2 # which can be switched at runtime with shift+left/right 3 # root=/path/to/root 4 5 # rofi command. Make sure to have "$@" as last argument 6 _rofi () { 7 rofi -i -no-auto-select "$@" 8 } 9 10 # default command to generate passwords 11 _pwgen () { 12 pwgen -y "$@" 13 } 14 15 # image viewer to display qrcode of selected entry 16 # qrencode is needed to generate the image and a viewer 17 # that can read from pipes. Known viewers to work are feh and display 18 _image_viewer () { 19 feh - 20 # display 21 } 22 23 # xdotool needs the keyboard layout to be set using setxkbmap 24 # You can do this in your autostart scripts (e.g. xinitrc) 25 26 # If for some reason, you cannot do this, you can set the command here. 27 # and set fix_layout to true 28 fix_layout=false 29 30 layout_cmd () { 31 setxkbmap us 32 } 33 34 # fields to be used 35 URL_field='url' 36 USERNAME_field='login' 37 AUTOTYPE_field='autotype' 38 39 # delay to be used for :delay keyword 40 delay=2 41 42 # rofi-pass needs to close itself before it can type passwords. Set delay here. 43 wait=0.2 44 45 # delay between keypresses when typing (in ms) 46 xdotool_delay=12 47 48 ## Programs to be used 49 # Editor 50 EDITOR='gvim -f' 51 52 # Browser 53 BROWSER='xdg-open' 54 55 ## Misc settings 56 57 default_do='menu' # menu, autotype, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl 58 auto_enter='false' 59 notify='false' 60 default_autotype='user :tab pass' 61 62 # color of the help messages 63 # leave empty for autodetection 64 help_color="#4872FF" 65 66 # Clipboard settings 67 # Possible options: primary, clipboard, both 68 clip=primary 69 70 # Seconds before clearing pass from clipboard 71 clip_clear=45 72 73 ## Options for generating new password entries 74 75 # open new password entries in editor 76 edit_new_pass="true" 77 78 # default_user is also used for password files that have no user field. 79 #default_user="${ROFI_PASS_DEFAULT_USER-$(whoami)}" 80 #default_user2=mary_ann 81 #password_length=12 82 83 # Custom Keybindings 84 autotype="Alt+1" 85 type_user="Alt+2" 86 type_pass="Alt+3" 87 open_url="Alt+4" 88 copy_name="Alt+u" 89 copy_url="Alt+l" 90 copy_pass="Alt+p" 91 show="Alt+o" 92 copy_entry="Alt+2" 93 type_entry="Alt+1" 94 copy_menu="Alt+c" 95 action_menu="Alt+a" 96 type_menu="Alt+t" 97 help="Alt+h" 98 switch="Alt+x" 99 insert_pass="Alt+n"