Posts

CmdRunner

Runs a terminal command on a schedule. Source Code wtf/cmdrunner/ Required ENV Variables None. Keyboard Commands None. Configuration cmdrunner: args: ["-g", "batt"] cmd: "pmset" enabled: true position: top: 6 left: 1 height: 1 width: 3 refreshInterval: 30 Attributes args The arguments to the command, with each item as an element in an array. Example: for curl -I cisco.com, the arguments array would be ["-I", "cisco.com"]. cmd The terminal command to be run, withouth the arguments. »

Configuration: Attributes

The following top-level attributes are configurable in config.yml. See this example config file for more details. wtf: colors: background: "red" border: Focusable: "darkslateblue" focused: "orange" normal: "gray" grid: # How _wide_ the columns are, in terminal characters. In this case we have # six columns, each of which are 35 characters wide columns: [35, 35, 35, 35, 35, 35] # How _high_ the rows are, in terminal lines. In this case we have five rows # that support ten line of text, one of three lines, and one of four rows: [10, 10, 10, 10, 10, 3, 4] # The app redraws itself once a second openFileUtil: open refreshInterval: 1 term: "xterm-256color" Attributes colors. »

Todo

An interactive todo list. Source Code wtf/todo/ Required ENV Variables None. Keyboard Commands Key: [return] Action: Edit the selected item. Action: Close the modal item dialog and save changes. Key: [esc] Action: Remove focus from the selected item. Action: Close the modal item dialog without saving changes. Key: [space] Action: Check/uncheck the selected item. Key: / Action: Open/close the widget’s help window. Key: j Action: Select the next item in the list. »

Jira

Displays all Jira issues assigned to you for the specified project. Source Code wtf/jira/ Keyboard Commands Key: [return] Action: Open the selected issue in the browser. Key: j Action: Select the next item in the list. Key: k Action: Select the previous item in the list. Key: ↓ Action: Select the next item in the list. Key: ↑ Action: Select the previous item in the list. Configuration Single Jira Project jira: apiKey: "3276d7155dd9ee27b8b14f8743a408a9" colors: rows: even: "lightblue" odd: "white" domain: "https://umbrellacorp. »

Trello

Displays all Trello cards on specified lists. Source Code wtf/trello/ Keyboard Commands None. Configuration Single Trello List trello: accessToken: "7b8b14f8743a408a93276d7155dd9ee2" apiKey: "3276d7155dd9ee27b8b14f8743a408a9" board: Main enabled: true list: "Todo" position: height: 1 left: 2 top: 0 width: 1 refreshInterval: 3600 username: myname Multiple Trello Lists If you want to monitor multiple Trello lists, use the following configuration (note the difference in list): trello: accessToken: "7b8b14f8743a408a93276d7155dd9ee2" apiKey: "3276d7155dd9ee27b8b14f8743a408a9" board: Main enabled: true list: ["Todo", "Done"] position: height: 1 left: 2 top: 0 width: 1 refreshInterval: 3600 username: myname Attributes accessToken Value: Your Trello access token. »

Google Calendar

Displays your upcoming Google calendar events. Not: Setting up access to Google Calendars for Go is a bit unobvious. Check out Google’s Go Quickstart first and if you have problems, then take a look at this comment by WesleydeSouza which offers a slightly different approach. Source Code wtf/gcal/ Required ENV Variables None. Keyboard Commands None. Configuration gcal: colors: title: "red" description: "lightblue" highlights: - ['1on1|1\/11', 'green'] - ['apple|google|aws', 'blue'] - ['interview|meet', 'magenta'] - ['lunch', 'yellow'] past: "gray" conflictIcon: "🚨" currentIcon: "💥" displayResponseStatus: true email: "chriscummer@me. »

GitHub

Displays information about your git repositories hosted on GitHub: Open Review Requests All open code review requests assigned to you. Open Pull Requests All open pull requests created by you. Source Code wtf/github/ Keyboard Commands Key: / Action: Open/close the widget’s help window. Key: h Action: Show the previous git repository. Key: l Action: Show the next git repository. Key: ← Action: Show the previous git repository. Key: → Action: Show the next git repository. »

Git

Displays information about local git repositories: branch, changed files, and recent commits. Branch The name of the currently-active git branch. Changed Files A list of all the files that have changed since the last commit, and their status. Recent Commits A list of n recent commits, who committed it, and when. Source Code wtf/git/ Required ENV Variables None. Keyboard Commands Key: / Action: Open/close the widget’s help window. Key: h Action: Show the previous git repository. »

Weather

Displays a configurable list of current weather report, including current temperature, sunrise time, and sunset time. Source Code wtf/weather/ Required ENV Variables Key: WTF_OWM_API_KEY Action: Your OpenWeatherMap API key. Note: DEPRECATED. See the apiKey config value, below. Keyboard Commands Key: / Action: Open/close the widget’s help window. Key: h Action: Show the previous weather location. Key: l Action: Show the next weather location. Key: ← Action: Show the previous weather location. »

Textfile

Displays the contents of the specified text file in the widget. Source Code wtf/textfile/ Required ENV Variables None. Keyboard Commands Key: / Action: Open/close the widget’s help window. Key: o Action: Opens the text file in whichever text editor is associated with that file type. Configuration textfile: enabled: true filePath: "~/Desktop/notes.md" position: top: 5 left: 4 height: 2 width: 1 refreshInterval: 15 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. »