Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

177 lines
5.2 KiB

1 year ago
  1. ; Reddit Terminal Viewer Configuration File
  2. ; https://github.com/michael-lazar/rtv
  3. ;
  4. ; This file should be placed in $XDG_CONFIG/rtv/rtv.cfg
  5. ; If $XDG_CONFIG is not set, use ~/.config/rtv/rtv.cfg
  6. [rtv]
  7. ##################
  8. # General Settings
  9. ##################
  10. ; Turn on ascii-only mode to disable all unicode characters.
  11. ; This may be necessary for compatibility with some terminal browsers.
  12. ascii = False
  13. ; Turn on monochrome mode to disable color.
  14. monochrome = False
  15. ; Flash when an invalid action is executed.
  16. flash = True
  17. ; Enable debugging by logging all HTTP requests and errors to the given file.
  18. ;log = /tmp/rtv.log
  19. ; Default subreddit that will be opened when the program launches.
  20. subreddit = front
  21. ;subreddit = python
  22. ;subreddit = python+linux+programming
  23. ;subreddit = all
  24. ; Allow rtv to store reddit authentication credentials between sessions.
  25. persistent = True
  26. ; Automatically log in on startup, if credentials are available.
  27. autologin = True
  28. ; Clear any stored credentials when the program starts.
  29. clear_auth = False
  30. ; Maximum number of opened links that will be saved in the history file.
  31. history_size = 200
  32. ; Open external links using programs defined in the mailcap config.
  33. enable_media = False
  34. ; Maximum number of columns for a comment
  35. max_comment_cols = 120
  36. ; Maximum number of columns for pager
  37. ;max_pager_cols = 70
  38. ; Hide username if logged in, display "Logged in" instead
  39. hide_username = False
  40. ; Color theme, use "rtv --list-themes" to view a list of valid options.
  41. ; This can be an absolute filepath, or the name of a theme file that has
  42. ; been installed into either the custom of default theme paths.
  43. ;theme = molokai
  44. ################
  45. # OAuth Settings
  46. ################
  47. ; This sections defines the paramaters that will be used during the OAuth
  48. ; authentication process. rtv is registered as an "installed app",
  49. ; see https://github.com/reddit/reddit/wiki/OAuth2 for more information.
  50. ; These settings are defined at https://www.reddit.com/prefs/apps and should
  51. ; not be altered unless you are defining your own developer application.
  52. oauth_client_id = E2oEtRQfdfAfNQ
  53. oauth_client_secret = praw_gapfill
  54. oauth_redirect_uri = http://127.0.0.1:65000/
  55. ; Port that the rtv webserver will listen on. This should match the redirect
  56. ; uri defined above.
  57. oauth_redirect_port = 65000
  58. ; Access permissions that will be requested.
  59. oauth_scope = edit,history,identity,mysubreddits,privatemessages,read,report,save,submit,subscribe,vote
  60. ; This is a separate token for the imgur api. It's used to extract images
  61. ; from imgur links and albums so they can be opened with mailcap.
  62. ; See https://imgur.com/account/settings/apps to generate your own key.
  63. imgur_client_id = 93396265f59dec9
  64. [bindings]
  65. ##############
  66. # Key Bindings
  67. ##############
  68. ; If you would like to define custom bindings, copy this section into your
  69. ; config file with the [bindings] heading. All commands must be bound to at
  70. ; least one key for the config to be valid.
  71. ;
  72. ; 1.) Plain keys can be represented by either uppercase/lowercase characters
  73. ; or the hexadecimal numbers referring their ascii codes. For reference, see
  74. ; https://en.wikipedia.org/wiki/ASCII#ASCII_printable_code_chart
  75. ; e.g. Q, q, 1, ?
  76. ; e.g. 0x20 (space), 0x3c (less-than sign)
  77. ;
  78. ; 2.) Special ascii control codes should be surrounded with <>. For reference,
  79. ; see https://en.wikipedia.org/wiki/ASCII#ASCII_control_code_chart
  80. ; e.g. <LF> (enter), <ESC> (escape)
  81. ;
  82. ; 3.) Other special keys are defined by curses, they should be surrounded by <>
  83. ; and prefixed with KEY_. For reference, see
  84. ; https://docs.python.org/2/library/curses.html#constants
  85. ; e.g. <KEY_LEFT> (left arrow), <KEY_F5>, <KEY_NPAGE> (page down)
  86. ;
  87. ; Notes:
  88. ; - Curses <KEY_ENTER> is unreliable and should always be used in conjunction
  89. ; with <LF>.
  90. ; - Use 0x20 for the space key.
  91. ; - A subset of Ctrl modifiers are available through the ascii control codes.
  92. ; For example, Ctrl-D will trigger an <EOT> signal. See the table above for
  93. ; a complete reference.
  94. ; Base page
  95. EXIT = q
  96. FORCE_EXIT = Q
  97. HELP = ?
  98. SORT_1 = 1
  99. SORT_2 = 2
  100. SORT_3 = 3
  101. SORT_4 = 4
  102. SORT_5 = 5
  103. SORT_6 = 6
  104. SORT_7 = 7
  105. MOVE_UP = k, <KEY_UP>
  106. MOVE_DOWN = j, <KEY_DOWN>
  107. PREVIOUS_THEME = <KEY_F2>
  108. NEXT_THEME = <KEY_F3>
  109. PAGE_UP = m, <KEY_PPAGE>, <NAK>
  110. PAGE_DOWN = n, <KEY_NPAGE>, <EOT>
  111. PAGE_TOP = gg
  112. PAGE_BOTTOM = G
  113. UPVOTE = a
  114. DOWNVOTE = z
  115. LOGIN = u
  116. DELETE = d
  117. EDIT = e
  118. INBOX = i
  119. REFRESH = r, <KEY_F5>
  120. PROMPT = /
  121. SAVE = w
  122. COPY_PERMALINK = y
  123. COPY_URL = Y
  124. PRIVATE_MESSAGE = C
  125. SUBSCRIPTIONS = s
  126. MULTIREDDITS = S
  127. ; Submission page
  128. SUBMISSION_TOGGLE_COMMENT = 0x20
  129. SUBMISSION_OPEN_IN_BROWSER = o, <LF>, <KEY_ENTER>
  130. SUBMISSION_POST = c
  131. SUBMISSION_EXIT = h, <KEY_LEFT>
  132. SUBMISSION_OPEN_IN_PAGER = l, <KEY_RIGHT>
  133. SUBMISSION_OPEN_IN_URLVIEWER = b
  134. SUBMISSION_GOTO_PARENT = K
  135. SUBMISSION_GOTO_SIBLING = J
  136. ; Subreddit page
  137. SUBREDDIT_SEARCH = f
  138. SUBREDDIT_POST = c
  139. SUBREDDIT_OPEN = l, <KEY_RIGHT>
  140. SUBREDDIT_OPEN_IN_BROWSER = o, <LF>, <KEY_ENTER>
  141. SUBREDDIT_FRONTPAGE = p
  142. SUBREDDIT_HIDE = 0x20
  143. ; Subscription page
  144. SUBSCRIPTION_SELECT = l, <LF>, <KEY_ENTER>, <KEY_RIGHT>
  145. SUBSCRIPTION_EXIT = h, s, S, <ESC>, <KEY_LEFT>
  146. ; Inbox page
  147. INBOX_VIEW_CONTEXT = l, <KEY_RIGHT>
  148. INBOX_OPEN_SUBMISSION = o, <LF>, <KEY_ENTER>
  149. INBOX_REPLY = c
  150. INBOX_MARK_READ = w
  151. INBOX_EXIT = h, <ESC>, <KEY_LEFT>