speedwm-personal/statusbar.h

33 lines
1.1 KiB
C

/* Commands that will run when a part of the status bar is pressed. You can add:
* '\x<num>
* before you print anything. Keep in mind <num> MUST be two digits.
*
* It must also be wrapped in a printf. Example:
*
* Invalid: speedwm -s "\x01This is a test"
* Valid: speedwm -s "$(printf '\x01This is a test')"
*
* As for the modules here, they are only compatible with the built-in status bar by default.
* You may add support in your own bar, though.
*
* Syntax: { "<command", <clicknum> },
*
* On click, the file /tmp/speedwm-button is created. In this file:
*
* 1 - Left click
* 2 - Middle click
* 3 - Right click
*
*/
static const StatusCmd statuscmds[] = {
{ "module_ram --click", 1 },
{ "module_time --click", 2 },
{ "module_date --click", 3 },
{ "module_vol --click", 4 },
{ "module_weather --click", 5 },
{ "module_net --click", 6 },
{ "module_dfmpeg --click", 7 },
{ "module_temp --click", 8 },
{ "module_music --click", 9 },
};