dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

tuir.cfg (5406B)


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