-i determines whether a background color is included indicating severity.You can output a percentage instead of a graph with cpu -percent.In regular graph mode averages are overlapping, with the lowest average (default 1 minute) in a dark bar on top. To show just the 5 and 15m averages, you would use cpu -averages 5,15. cpu -averages can limit it to certain averages (1, 5, or 15m).btt_stats.rb cpu outputs a graph of current CPU load.batt -p outputs just the charge percentage.btt_stats.rb batt outputs a line chart showing battery charge level.-raw outputs only the text without the JSON that's used by BetterTouchTool to add things like background colors to the widget.This overrides the :bar_width setting in the config for just the current command -width WIDTH applies to any command that outputs a graph.-suffix SUFFIX outputs the specified text after the content.-prefix PREFIX outputs the specified text before the content.All commands respond to the following switches: Use btt_stats.rb SUBCOMMAND to output various widgets. Make sure the script is saved to a permanent location before creating widgets with it. The location of the btt_stats.rb script is hardcoded into the new widgets based on where the script is when you run it. And if they don't immediately show up in your Touch/menu bar, you may need to then hide and show them to get them to stick. You need to switch to a different page of the configuration window and then back to see the new widget(s). When you add a widget via external script, BetterTouchTool does not show the new widget in the config right away. Weirdo.) To see a list of available widgets, just run btt_stats.rb add with no arguments. You can use btt_stats.rb to automatically add selected widgets to either your Touch Bar or your menu bar. # the JSON formatting it uses for BetterTouchTool widgets, set :raw to true # If you want to use `btt_stats.rb` to just return plain text without # `btt_stats.rb refresh doing` would refresh both widgets listed. # Keys can also be arrays, so calling the below with # The content of the key is the widget's UUID, which you can get by right # and keys can be nested and called like `btt_stats.rb refresh bunch:comms` # Refresh settings are shortcuts to refreshing widgets using :recording: # Color when recording is active :record: # Color when recording is inactive :off: # Used for muted, video off, and sharing off :on: # Used for unmuted, video on, and sharing on # They must be in numerical order from lowest to highest, but you # a percentage at or below a certain threshold. # Severity levels define the foreground and background colors for :fg: "#ffffff" # Colors for when no task was returned by the `doing` subcommand Only applies to `doing`, active means a task is currently running :fg: "#000000" # Foreground color for "active". :bar_width: 8 # Default width of bar graphs for CPU and memory usage display
0 Comments
Leave a Reply. |