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