summaryrefslogtreecommitdiff
path: root/slstatus.c
AgeCommit message (Collapse)Author
2016-08-28used constant string literals && remote initialization to in battery_perc() ↵Ali H. Fardan
&& trying to fix possible buffer overflow
2016-08-25removing typecasts for pcm_mixer cause more issues than beforeAli H. Fardan
2016-08-23removed unnecessary typecasts (might be a reason for ↵Ali H. Fardan
snd_mixer_selem_get_playback_volume_range bug
2016-08-21status_string can hold 4096 bytes nowAli H. Fardan
2016-08-21fixed compiler warnings in a better wayAli H. Fardan
2016-08-21fixed the code, works nowAli H. Fardan
2016-08-21(void)ed the prototypesAli H. Fardan
2016-08-21set local function as staticAli H. Fardan
2016-08-21the code describes itself, there is no need to write stories in /* */Ali H. Fardan
2016-08-21braces are unneeded for one-liner if()/while()Ali H. Fardan
2016-08-21added bounds checking via secure strl*() routinesAli H. Fardan
2016-08-18suckless coding style fix -> remove slstatus.hAaron Marcher
2016-08-18added uptime functionAaron Marcher
2016-08-18load avgAaron Marcher
2016-08-18added configuration option for n/a textAaron Marcher
2016-08-16Added \n to all error messages.Aaron Marcher
2016-08-16Formatting commit :(Aaron Marcher
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-15simplified ram functionAaron Marcher
2016-08-15simplified wifi_essid by removing one malloc()Aaron Marcher
2016-08-15added wifi essidAaron Marcher
2016-08-15fixed strcat null possibility in main()Aaron Marcher
2016-08-15fixed strlen-bomb in run_commandAaron Marcher
2016-08-15fixed memleak in datetime()Aaron Marcher
2016-08-15void argument main()Aaron Marcher
2016-08-15Fixed alsa function + datetime functionAaron Marcher
2016-08-15Added shell command functionAaron Marcher
2016-06-13added, username, gid, uidAaron Marcher
2016-06-10added disk functions for detailsAaron Marcher
2016-06-10added memory values ram functionsAaron Marcher
2016-06-10fixed hostname function and added HOST_NAME_MAX limitAaron Marcher
2016-06-10hostname functionAaron Marcher
2016-06-08added ip address functionAaron Marcher
2016-06-03added entropyAaron Marcher
2016-03-18Easier info function namesAaron Marcher
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-17Fix some memory leaksDaniel Walter
2016-03-16headerAaron Marcher
2016-03-14completely new system: only values in config file get updated + cleaner codeAaron Marcher
2016-03-11whitespace errorAaron Marcher
2016-03-11fixed disk percentAaron Marcher
2016-03-11Add diskusage supportDaniel Walter
add support to show used disk for a given mountpoint
2016-03-10Fixed locale defaulting to EnglishVincent Loupmon
Changed get_datetime() a bit so it respects the user-configured locale (to use time formats with strings for days, months etc.) Same commit as last time, except it merges.
2016-03-10added update_interval check to config_check()Aaron Marcher
2016-03-10fixed some small things (update_interval) interferes with get_cpu_usage() ↵Aaron Marcher
and reordered)
2016-03-10return n/a instead of exiting if a specific value cannot be readDaniel Walter
2016-03-10add config checks on startup for better error handlingDaniel Walter
2016-03-10add update_intervalDaniel Walter
add a short sleep to reduce load
2016-03-10simplify smprintf by using vasprintfDaniel Walter
2016-03-10Merge pull request #5 from Vlaix/masterAaron Marcher
Fixed small buffer in get_datetime()
2016-03-10Fixed small buffer in get_datetime()Vincent Loupmon
The buffer being hardcoded to 19 (the size expected from the default time format), strftime() would fail on any format returning a longer buffer. Changed it from 19 to 64 to accomodate longer formats.
2016-03-10small changes (var names)Aaron Marcher