dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

tuir.cfg (5571B)


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