speedwm-personal/status.h

49 lines
2.7 KiB
C
Raw Normal View History

/* status.h
*
* This header is for configuring the status bar (based on dwmblocks).
* It is technically a separate program, but it is compiled and installed alongside speedwm.
*
* This separate program (status.c, status.h) is licensed under the GNU General Public License version 2.0.
*
* Prefix: Text that will be printed before each module. This can be Pango/status2d/clickstatus markup or a unicode/ASCII character.
* Command: Command that will run. The output of this command will be printed for that module.
* Update interval: How often the module will be updated in seconds.
* Update signal: What signal reloads the module with force. (using the kill command)
*/
static const Module modules[] = {
/* prefix command update interval update signal */
{ "\x01^C1^", "module_time --print", 1, 1 },
{ "\x02^C2^", "module_date --print", 60, 2 },
{ "\x03^C3^", "module_bat --print", 10, 3 },
{ "\x04^C4^", "module_vol --print", 1, 4 },
{ "\x05^C5^", "module_ram --print", 6, 5 },
{ "\x06^C6^", "module_net --print", 10, 6 },
{ "\x07^C7^", "module_temp --print", 5, 7 },
{ "\x08^C8^", "module_weather --print", 60, 8 },
{ "\x09^C9^", "module_music --print", 1, 9 },
{ "\x10^C10^", "module_dfmpeg --print", 5, 10 },
{ "\x11^C11^", "module_news --print", 30, 11 },
};
static char leftpadding[] = ""; /* Padding on the left side of the status text */
static char rightpadding[] = ""; /* Padding on the right side of the status text */
static char *separator = ""; /* Delimiter between modules. Note that this will be applied even if a command is empty. */
/* License:
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/