Subreddit

subreddit module screenshot

Displays stories from a specific subreddit.

Configuration

subreddit:
  enabled: true
  numberOfPosts: 10
  position:
    top: 4
    left: 1
    height: 1
    width: 2
  sortOrder: top
  subreddit: "news"
  topTimePeriod: month
  refreshInterval: 900
Name Description Value
border Optional Whether or not to draw this widget with a border. Default: true. true, false
enabled Optional Whether or not this module is executed and if its data displayed onscreen. Default: false. true, false
focusChar Optional Define one of the number keys as a short cut key to access the widget. 0..9
numberOfPosts Optional Defines number of stories to be displayed. Default: 10. Note that the module only makes one request, so the maximum is 25. Any positive integer equal to or less than 25
position Defines where in the grid this module’s widget will be displayed.
refreshInterval Optional How often, in seconds, this module will update its data. Default: 300. Any positive integer.
sortOrder Optional Defines the order to sort the posts in the subreddit. Default: hot. new, top, hot
subreddit Required The subreddit to display links from. Any subreddit
topTimePeriod Optional Defines the time period to choose top posts from. Default: all hour, day, week, month, year, all

Keyboard Controls

Key Action
/ Open/close the widget’s help window
[return] Open the selected link in the browser
c Open the selected link's Reddit comments in the browser
j Select the next item in the list
k Select the previous item in the list
o Open the selected link in the browser
r Refresh the data
Select the next item in the list
Select the previous item in the list

Source Code

wtf/modules/subreddit/