2022-10-08 18:07:28 +02:00
|
|
|
/* 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:
|
|
|
|
*
|
2022-10-15 02:29:27 +02:00
|
|
|
* Invalid: speedwm -s "\x01This is a test"
|
|
|
|
* Valid: speedwm -s "$(printf '\x01This is a test')"
|
2022-10-08 18:07:28 +02:00
|
|
|
*
|
|
|
|
* 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.
|
2022-10-20 15:29:43 +02:00
|
|
|
*
|
|
|
|
* Syntax: { "<command", <clicknum> },
|
|
|
|
*
|
|
|
|
* On click, the file /tmp/speedwm-button is created. In this file:
|
|
|
|
*
|
|
|
|
* 1 - Left click
|
|
|
|
* 2 - Middle click
|
|
|
|
* 3 - Right click
|
|
|
|
*
|
2022-10-08 18:07:28 +02:00
|
|
|
*/
|
|
|
|
static const StatusCmd statuscmds[] = {
|
|
|
|
{ "module_ram", 1 },
|
|
|
|
{ "module_time", 2 },
|
|
|
|
{ "module_date", 3 },
|
|
|
|
{ "module_vol", 4 },
|
|
|
|
{ "module_weather", 5 },
|
|
|
|
{ "module_net", 6 },
|
|
|
|
{ "module_dfmpeg", 7 },
|
|
|
|
{ "module_temp", 8 },
|
|
|
|
{ "module_music", 9 },
|
|
|
|
};
|