1
0
Commit Graph

29 Commits

Author SHA1 Message Date
drkhsh
c46c1487a9 separator: kill that useless thing
Just use the format strings dude. :)
2022-10-28 01:00:40 +02:00
NRK
0c2b3e5b5c do not rely on obsolete feature
function prototype with unspecified argument is obsolete since c99.

additionally some of these function which don't take any argument were
being called with a `const char *` arg, which is UB.

fix both these issues by declararing ALL the components to accept a
`const char *`, and name the arg "unused" if it's meant to be ignored.
2022-10-26 23:32:43 +02:00
NRK
3c47701aea Fix keyboard_indicators() prototype
according to both the function definition and the comment in
config.def.h, keyboard_indicators() should take a format string.
2022-10-26 21:24:09 +02:00
Ryan Kes
2b0f50d1aa Add separator module 2020-11-30 21:15:13 +01:00
Aaron Marcher
51ff7ce2b9 Consistent paramter naming for components 2018-07-06 08:08:48 +02:00
Aaron Marcher
efa26f4f35 slstatus.h: Fix coding style
Function declarations should include variable names.
For functions with different parameters on different platfroms they are
left out.
2018-07-06 08:03:31 +02:00
Aaron Marcher
c28643ce5b Revert "Add basic backlight percentage support"
On OpenBSD the backlight percentage cannot be retrieved in a simple way.
The only two solutions we are aware of for now are:

 - reading from /dev/ttyC0: which isn't possible without changing
 permissions or running slstatus as root
 - linking against xcb-xrandr: which is bloat and does not work in every
 case appearently

This reverts commit 37724ac2c3 for now.
2018-05-27 16:46:03 +02:00
Michael Buch
943b42de05 Add keymap component
Adding a new keymap component that will
indicate the current keyboard layout (language)
and variant if any was set. I use the
standard X11 XKB APIs to retrieve and parse
the xkb_symbols set with setxkbmap.
2018-05-23 10:09:13 +02:00
David Demelier
37724ac2c3 Add basic backlight percentage support
At the moment linux only, but will add support for OpenBSD as well.
2018-05-22 12:40:31 +02:00
Aaron Marcher
0d05b3d13d Add network speed functions 2018-05-19 00:31:33 +02:00
Tobias Tschinkowitz
8c8326f793 Add battery_remaining function on OpenBSD
Implementation of a battery_remaining function which returns the
remaining battery time in HH:MM format. Linux function still needs
implementation.
Move common code to load_apm_power_info
2018-05-18 15:25:42 +02:00
Aaron Marcher
66a7fb16fc Remove cpu_iowait
The third value from load_avg (idle) gives us almost the same
information as cpu_iowait. Plus OpenBSD does not offer an iowait value
as Linux and thus the corresponding function would not be portable.
2018-05-06 21:11:50 +02:00
Aaron Marcher
4f5ac5d9fe Remove battery_power for various reasons
- Battery power cannot be easily gatherable via apm(4)
- IMHO it does not represent essential information
2018-05-01 21:01:25 +02:00
Laslo Hunhold
eea99fc0ac
Rewrite Makefile to accomodate file split 2017-09-17 17:37:49 +02:00
Aaron Marcher
85dd971fb3 suckless coding style fix -> remove slstatus.h 2016-08-18 14:55:05 +02:00
Aaron Marcher
85a2b9b79d added uptime function 2016-08-18 13:43:18 +02:00
Aaron Marcher
83c98554ed load avg 2016-08-18 13:30:45 +02:00
Aaron Marcher
ad8ab20c63 Formatting commit :(
I know formatting commits suck... And I try to avoid them.

But this commit was absolutely necessary... The coding style in this
program was not ok and not the same over the whole program.

The commit is hard to read, but this is what I changed:
- Tabs for indentation instead of spaces
- Same style over the whole program (suckless style)
2016-08-16 11:41:43 +02:00
Aaron Marcher
093f39df23 added wifi essid 2016-08-15 14:43:29 +02:00
Aaron Marcher
9078fb351d Fixed alsa function + datetime function 2016-08-15 12:26:00 +02:00
Aaron Marcher
16716dd130 added, username, gid, uid 2016-06-13 18:49:50 +02:00
Aaron Marcher
fb524b6050 added disk functions for details 2016-06-10 19:13:13 +02:00
Aaron Marcher
688c2d43e2 added memory values ram functions 2016-06-10 18:46:47 +02:00
Aaron Marcher
2e72b212d3 hostname function 2016-06-10 15:53:07 +02:00
Aaron Marcher
67203c6660 added ip address function 2016-06-08 09:42:32 +02:00
Aaron Marcher
5a943fa59c added entropy 2016-06-03 13:04:15 +02:00
Aaron Marcher
02af858a35 Easier info function names
All the info function names started with "get_", which I removed to make
it easier for the user to configure the program to its needs.
Additionally I renamed some functions (e.g. get_ram_usage) to better
names, making it easier to extend the program with ram usage / total
functions.
2016-03-18 16:15:05 +01:00
Aaron Marcher
bc12a40dec added license info to slstatus.h 2016-03-16 09:01:07 +01:00
Aaron Marcher
ace0aa15bf header 2016-03-16 08:45:19 +01:00