rofi-pass.conf 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. # rofi command. Make sure to have "$@" as last argument
  5. _rofi () {
  6. rofi -i -no-auto-select "$@"
  7. }
  8. # default command to generate passwords
  9. _pwgen () {
  10. pwgen -y "$@"
  11. }
  12. # image viewer to display qrcode of selected entry
  13. # qrencode is needed to generate the image and a viewer
  14. # that can read from pipes. Known viewers to work are feh and display
  15. _image_viewer () {
  16. feh -
  17. # display
  18. }
  19. # It is possible to use wl-copy and wl-paste from wl-clipboard
  20. # Just uncomment the lines with wl-copy and wl-paste
  21. # and comment the xclip lines
  22. #
  23. _clip_in_primary() {
  24. xclip
  25. # wl-copy-p
  26. }
  27. _clip_in_clipboard() {
  28. xclip -selection clipboard
  29. # wl-copy
  30. }
  31. _clip_out_primary() {
  32. xclip -o
  33. # wl-paste -p
  34. }
  35. _clip_out_clipboard() {
  36. xclip --selection clipboard -o
  37. # wl-paste
  38. }
  39. # xdotool needs the keyboard layout to be set using setxkbmap
  40. # You can do this in your autostart scripts (e.g. xinitrc)
  41. # If for some reason, you cannot do this, you can set the command here.
  42. # and set fix_layout to true
  43. fix_layout=false
  44. layout_cmd () {
  45. setxkbmap us
  46. }
  47. # fields to be used
  48. URL_field='url'
  49. USERNAME_field='login'
  50. AUTOTYPE_field='autotype'
  51. # delay to be used for :delay keyword
  52. delay=2
  53. # rofi-pass needs to close itself before it can type passwords. Set delay here.
  54. wait=0.2
  55. # delay between keypresses when typing (in ms)
  56. xdotool_delay=12
  57. ## Programs to be used
  58. # Editor
  59. #EDITOR='gvim -f'
  60. EDITOR='micro'
  61. # Browser
  62. BROWSER='xdg-open'
  63. ## Misc settings
  64. default_do='menu' # menu, autotype, copyPass, typeUser, typePass, copyUser, copyUrl, viewEntry, typeMenu, actionMenu, copyMenu, openUrl
  65. auto_enter='false'
  66. notify='false'
  67. default_autotype='user :tab pass'
  68. # color of the help messages
  69. # leave empty for autodetection
  70. help_color="#4872FF"
  71. # Clipboard settings
  72. # Possible options: primary, clipboard, both
  73. clip=primary
  74. # Seconds before clearing pass from clipboard
  75. clip_clear=45
  76. ## Options for generating new password entries
  77. # open new password entries in editor
  78. edit_new_pass="true"
  79. # default_user is also used for password files that have no user field.
  80. #default_user="${ROFI_PASS_DEFAULT_USER-$(whoami)}"
  81. #default_user2=mary_ann
  82. #password_length=12
  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"