suckless/slstatus.git
8 years agouse warn[x]() instead of long fprintf()s
Ali H. Fardan [Thu, 8 Sep 2016 01:45:00 +0000 (04:45 +0300)]
use warn[x]() instead of long fprintf()s

8 years agoused ccat() from concat.h for string concatenation
Ali H. Fardan [Thu, 8 Sep 2016 01:31:49 +0000 (04:31 +0300)]
used ccat() from concat.h for string concatenation

8 years agofixed some mistakes
Ali H. Fardan [Sun, 4 Sep 2016 23:28:18 +0000 (02:28 +0300)]
fixed some mistakes

8 years agowhat kind of weed is that?
Ali H. Fardan [Sun, 4 Sep 2016 23:17:30 +0000 (02:17 +0300)]
what kind of weed is that?

8 years agobringed back the old config.mk
Ali H. Fardan [Sun, 4 Sep 2016 22:40:47 +0000 (01:40 +0300)]
bringed back the old config.mk

8 years agobringed back the old config.mk
Ali H. Fardan [Sun, 4 Sep 2016 22:40:10 +0000 (01:40 +0300)]
bringed back the old config.mk

8 years agobringed back the loop
Ali H. Fardan [Sun, 4 Sep 2016 22:21:03 +0000 (01:21 +0300)]
bringed back the loop

8 years agoimported a new vol_perc() function, this should fix #12 (UNTESTED)
Ali H. Fardan [Sun, 4 Sep 2016 22:18:55 +0000 (01:18 +0300)]
imported a new vol_perc() function, this should fix #12 (UNTESTED)

8 years agoadded a tool for resetting the status bar && worked around some issues && removed...
Ali H. Fardan [Sun, 4 Sep 2016 22:13:48 +0000 (01:13 +0300)]
added a tool for resetting the status bar && worked around some issues && removed the makefile (we need a better one)

8 years agoconfig.mk cleanup
Ali H. Fardan [Sun, 4 Sep 2016 21:56:22 +0000 (00:56 +0300)]
config.mk cleanup

8 years agoadded daemonization support
Ali H. Fardan [Sat, 3 Sep 2016 21:10:49 +0000 (00:10 +0300)]
added daemonization support

8 years agoremoved UPDATE_INTERVAL, it is neat to have it but removing it is a tradeoff worth...
Ali H. Fardan [Sat, 3 Sep 2016 18:43:05 +0000 (21:43 +0300)]
removed UPDATE_INTERVAL, it is neat to have it but removing it is a tradeoff worth making, because the clock would act weird if this used to work with cpu_perc().

8 years agoremoved setstatus() && simplified main()
Ali H. Fardan [Fri, 2 Sep 2016 19:13:58 +0000 (22:13 +0300)]
removed setstatus() && simplified main()

8 years agoNOTREACHED comment
Ali H. Fardan [Thu, 1 Sep 2016 18:54:00 +0000 (21:54 +0300)]
NOTREACHED comment

8 years agosimplified gid()
Ali H. Fardan [Thu, 1 Sep 2016 18:51:32 +0000 (21:51 +0300)]
simplified gid()

8 years agosimplified uid() and fixed username()
Ali H. Fardan [Thu, 1 Sep 2016 18:35:32 +0000 (21:35 +0300)]
simplified uid() and fixed username()

8 years agoremoved unnecessary typecast and added more comments
Ali H. Fardan [Thu, 1 Sep 2016 18:15:40 +0000 (21:15 +0300)]
removed unnecessary typecast and added more comments

8 years agoremoved unneeded headers
Ali H. Fardan [Thu, 1 Sep 2016 18:02:17 +0000 (21:02 +0300)]
removed unneeded headers

8 years agoopened the file before the path concatenates, what an idiot
Ali H. Fardan [Wed, 31 Aug 2016 11:29:27 +0000 (14:29 +0300)]
opened the file before the path concatenates, what an idiot

8 years agoforgot to give entropy() some candy too
Ali H. Fardan [Wed, 31 Aug 2016 03:10:53 +0000 (06:10 +0300)]
forgot to give entropy() some candy too

8 years agoslow down boy! you opened the file too early!
Ali H. Fardan [Wed, 31 Aug 2016 03:00:14 +0000 (06:00 +0300)]
slow down boy! you opened the file too early!

8 years agoremoved vol function from the default config file
Ali H. Fardan [Tue, 30 Aug 2016 23:17:42 +0000 (02:17 +0300)]
removed vol function from the default config file

8 years agogot rid of conditional assignments && improved the error messages to output more...
Ali H. Fardan [Tue, 30 Aug 2016 18:50:40 +0000 (21:50 +0300)]
got rid of conditional assignments && improved the error messages to output more info && added bound checks for fscanf() in hostname() (a dirty hack) && fixed a bug or two && some tiny style corrections

8 years agoused a different implementation of smprintf() imported from dwmstatus
Ali H. Fardan [Sun, 28 Aug 2016 16:27:01 +0000 (19:27 +0300)]
used a different implementation of smprintf() imported from dwmstatus

8 years agoworked around the buffer overrun in smprintf()
Ali H. Fardan [Sun, 28 Aug 2016 15:19:53 +0000 (18:19 +0300)]
worked around the buffer overrun in smprintf()

8 years agoremoved heap dependency in datetime() and simplified the function
Ali H. Fardan [Sun, 28 Aug 2016 13:39:04 +0000 (16:39 +0300)]
removed heap dependency in datetime() and simplified the function

8 years agoFIXME: buffer overflow warning
Ali H. Fardan [Sun, 28 Aug 2016 13:30:12 +0000 (16:30 +0300)]
FIXME: buffer overflow warning

8 years agoremoved a misplaced ';'
Ali H. Fardan [Sun, 28 Aug 2016 13:24:19 +0000 (16:24 +0300)]
removed a misplaced ';'

8 years agoused constant string literals && remote initialization to in battery_perc() && tryin...
Ali H. Fardan [Sun, 28 Aug 2016 13:20:50 +0000 (16:20 +0300)]
used constant string literals && remote initialization to  in battery_perc() && trying to fix possible buffer overflow

8 years agogrammar correction
Ali H. Fardan [Sun, 28 Aug 2016 12:33:31 +0000 (15:33 +0300)]
grammar correction

8 years agoremoving typecasts for pcm_mixer cause more issues than before
Ali H. Fardan [Thu, 25 Aug 2016 20:26:17 +0000 (23:26 +0300)]
removing typecasts for pcm_mixer cause more issues than before

8 years agotypofix && another update
Ali H. Fardan [Tue, 23 Aug 2016 11:16:45 +0000 (14:16 +0300)]
typofix && another update

8 years agoanother update to README
Ali H. Fardan [Tue, 23 Aug 2016 11:13:23 +0000 (14:13 +0300)]
another update to README

8 years agoREADME update
Ali H. Fardan [Tue, 23 Aug 2016 11:11:55 +0000 (14:11 +0300)]
README update

8 years agoremoved unnecessary typecasts (might be a reason for snd_mixer_selem_get_playback_vol...
Ali H. Fardan [Tue, 23 Aug 2016 10:27:42 +0000 (13:27 +0300)]
removed unnecessary typecasts (might be a reason for snd_mixer_selem_get_playback_volume_range bug

8 years agostatus_string can hold 4096 bytes now
Ali H. Fardan [Sun, 21 Aug 2016 13:00:34 +0000 (16:00 +0300)]
status_string can hold 4096 bytes now

8 years agofixed compiler warnings in a better way
Ali H. Fardan [Sun, 21 Aug 2016 12:43:57 +0000 (15:43 +0300)]
fixed compiler warnings in a better way

8 years agocorrected the time format
Ali H. Fardan [Sun, 21 Aug 2016 12:21:20 +0000 (15:21 +0300)]
corrected the time format

8 years agorm .config.h.swp
Ali H. Fardan [Sun, 21 Aug 2016 12:20:07 +0000 (15:20 +0300)]
rm .config.h.swp

8 years agofixed the code, works now
Ali H. Fardan [Sun, 21 Aug 2016 12:19:45 +0000 (15:19 +0300)]
fixed the code, works now

8 years agoAdded myself to CONTRIBUTORS.md by drkh5h's request
Ali H. Fardan [Sun, 21 Aug 2016 09:04:01 +0000 (12:04 +0300)]
Added myself to CONTRIBUTORS.md by drkh5h's request

8 years ago(void)ed the prototypes
Ali H. Fardan [Sun, 21 Aug 2016 09:00:51 +0000 (12:00 +0300)]
(void)ed the prototypes

8 years agoset local function as static
Ali H. Fardan [Sun, 21 Aug 2016 08:28:42 +0000 (11:28 +0300)]
set local function as static

8 years ago-Wextra
Ali H. Fardan [Sun, 21 Aug 2016 08:10:37 +0000 (11:10 +0300)]
-Wextra

8 years agothe code describes itself, there is no need to write stories in /* */
Ali H. Fardan [Sun, 21 Aug 2016 08:10:14 +0000 (11:10 +0300)]
the code describes itself, there is no need to write stories in /* */

8 years agobraces are unneeded for one-liner if()/while()
Ali H. Fardan [Sat, 20 Aug 2016 21:28:36 +0000 (00:28 +0300)]
braces are unneeded for one-liner if()/while()

8 years agoadded bounds checking via secure strl*() routines
Ali H. Fardan [Sat, 20 Aug 2016 21:00:23 +0000 (00:00 +0300)]
added bounds checking via secure strl*() routines

8 years agoremove screenshot
Aaron Marcher [Thu, 18 Aug 2016 13:03:43 +0000 (15:03 +0200)]
remove screenshot

8 years agoupdate sloc count in readme
Aaron Marcher [Thu, 18 Aug 2016 13:02:51 +0000 (15:02 +0200)]
update sloc count in readme

8 years agoremove todo item
Aaron Marcher [Thu, 18 Aug 2016 13:01:19 +0000 (15:01 +0200)]
remove todo item

8 years agosuckless coding style fix -> remove slstatus.h
Aaron Marcher [Thu, 18 Aug 2016 12:55:05 +0000 (14:55 +0200)]
suckless coding style fix -> remove slstatus.h

8 years agoadded all functions to readme
Aaron Marcher [Thu, 18 Aug 2016 11:45:06 +0000 (13:45 +0200)]
added all functions to readme

8 years agoadded uptime function
Aaron Marcher [Thu, 18 Aug 2016 11:43:18 +0000 (13:43 +0200)]
added uptime function

8 years agoload avg
Aaron Marcher [Thu, 18 Aug 2016 11:30:45 +0000 (13:30 +0200)]
load avg

8 years agoadded configuration option for n/a text
Aaron Marcher [Thu, 18 Aug 2016 11:03:42 +0000 (13:03 +0200)]
added configuration option for n/a text

8 years agoAdded \n to all error messages.
Aaron Marcher [Tue, 16 Aug 2016 15:40:25 +0000 (17:40 +0200)]
Added \n to all error messages.

8 years agoRemoved the debug gcc flags
Aaron Marcher [Tue, 16 Aug 2016 15:34:50 +0000 (17:34 +0200)]
Removed the debug gcc flags

8 years agoFormatting commit :(
Aaron Marcher [Tue, 16 Aug 2016 09:41:43 +0000 (11:41 +0200)]
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)

8 years agosimplified ram function
Aaron Marcher [Mon, 15 Aug 2016 14:40:56 +0000 (16:40 +0200)]
simplified ram function

8 years agosimplified wifi_essid by removing one malloc()
Aaron Marcher [Mon, 15 Aug 2016 14:28:02 +0000 (16:28 +0200)]
simplified wifi_essid by removing one malloc()

8 years agothis project is now licensed under the ISC license
Aaron Marcher [Mon, 15 Aug 2016 14:10:42 +0000 (16:10 +0200)]
this project is now licensed under the ISC license

8 years agoadded wifi essid
Aaron Marcher [Mon, 15 Aug 2016 12:43:29 +0000 (14:43 +0200)]
added wifi essid

8 years agofixed strcat null possibility in main()
Aaron Marcher [Mon, 15 Aug 2016 11:08:34 +0000 (13:08 +0200)]
fixed strcat null possibility in main()

8 years agofixed strlen-bomb in run_command
Aaron Marcher [Mon, 15 Aug 2016 10:59:45 +0000 (12:59 +0200)]
fixed strlen-bomb in run_command

8 years agofixed memleak in datetime()
Aaron Marcher [Mon, 15 Aug 2016 10:43:43 +0000 (12:43 +0200)]
fixed memleak in datetime()

8 years agovoid argument main()
Aaron Marcher [Mon, 15 Aug 2016 10:34:45 +0000 (12:34 +0200)]
void argument main()

8 years agoFixed alsa function + datetime function
Aaron Marcher [Mon, 15 Aug 2016 10:26:00 +0000 (12:26 +0200)]
Fixed alsa function + datetime function

8 years agoAdded shell command function
Aaron Marcher [Mon, 15 Aug 2016 10:23:35 +0000 (12:23 +0200)]
Added shell command function

8 years agorevised readme
Aaron Marcher [Thu, 30 Jun 2016 16:36:24 +0000 (18:36 +0200)]
revised readme

8 years agorevised readme
Aaron Marcher [Thu, 30 Jun 2016 16:29:11 +0000 (18:29 +0200)]
revised readme

8 years agoREADME update (included information)
Aaron Marcher [Tue, 14 Jun 2016 17:19:25 +0000 (19:19 +0200)]
README update (included information)

8 years agoadded, username, gid, uid
Aaron Marcher [Mon, 13 Jun 2016 16:49:50 +0000 (18:49 +0200)]
added, username, gid, uid

8 years agoadded disk functions for details
Aaron Marcher [Fri, 10 Jun 2016 17:13:13 +0000 (19:13 +0200)]
added disk functions for details

8 years agoadded memory values ram functions
Aaron Marcher [Fri, 10 Jun 2016 16:46:47 +0000 (18:46 +0200)]
added memory values ram functions

8 years agofixed hostname function and added HOST_NAME_MAX limit
Aaron Marcher [Fri, 10 Jun 2016 16:22:05 +0000 (18:22 +0200)]
fixed hostname function and added HOST_NAME_MAX limit

8 years agohostname function
Aaron Marcher [Fri, 10 Jun 2016 13:53:07 +0000 (15:53 +0200)]
hostname function

8 years agoadded ip address function
Aaron Marcher [Wed, 8 Jun 2016 07:42:32 +0000 (09:42 +0200)]
added ip address function

8 years agoadded entropy
Aaron Marcher [Fri, 3 Jun 2016 11:04:15 +0000 (13:04 +0200)]
added entropy

8 years agoAdded icon to TODO.md
Aaron Marcher [Sun, 20 Mar 2016 16:07:00 +0000 (17:07 +0100)]
Added icon to TODO.md

8 years agotypo license != license.md :P
Aaron Marcher [Sun, 20 Mar 2016 13:20:22 +0000 (14:20 +0100)]
typo license != license.md :P

8 years agoChanges to documentation and new screenshot.
Aaron Marcher [Sun, 20 Mar 2016 13:18:05 +0000 (14:18 +0100)]
Changes to documentation and new screenshot.

- Better README.md
- Headlines in all files
- CONTRIBUTING.md
- New screenshot

8 years agoEasier info function names
Aaron Marcher [Fri, 18 Mar 2016 15:15:05 +0000 (16:15 +0100)]
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.

8 years agoMerge pull request #10 from sahne/master
Aaron Marcher [Thu, 17 Mar 2016 18:15:17 +0000 (19:15 +0100)]
Merge pull request #10 from sahne/master

Fix some memory leaks

8 years agoFix some memory leaks
Daniel Walter [Thu, 17 Mar 2016 18:12:47 +0000 (19:12 +0100)]
Fix some memory leaks

8 years agoadded license info to slstatus.h
Aaron Marcher [Wed, 16 Mar 2016 08:01:07 +0000 (09:01 +0100)]
added license info to slstatus.h

8 years agoheader
Aaron Marcher [Wed, 16 Mar 2016 07:45:19 +0000 (08:45 +0100)]
header

8 years agoremoved from todo
Aaron Marcher [Tue, 15 Mar 2016 10:28:14 +0000 (11:28 +0100)]
removed from todo

8 years agoadded some todos
Aaron Marcher [Tue, 15 Mar 2016 10:21:36 +0000 (11:21 +0100)]
added some todos

8 years agodisk usage in README.md
Aaron Marcher [Mon, 14 Mar 2016 19:25:56 +0000 (20:25 +0100)]
disk usage in README.md

8 years agocompletely new system: only values in config file get updated + cleaner code
Aaron Marcher [Mon, 14 Mar 2016 19:17:14 +0000 (20:17 +0100)]
completely new system: only values in config file get updated + cleaner code

8 years agowhitespace error
Aaron Marcher [Fri, 11 Mar 2016 12:15:17 +0000 (13:15 +0100)]
whitespace error

8 years agoremoved todo
Aaron Marcher [Fri, 11 Mar 2016 12:12:08 +0000 (13:12 +0100)]
removed todo

8 years agofixed disk percent
Aaron Marcher [Fri, 11 Mar 2016 12:11:15 +0000 (13:11 +0100)]
fixed disk percent

8 years agoMerge pull request #9 from sahne/master
Aaron Marcher [Fri, 11 Mar 2016 12:02:26 +0000 (13:02 +0100)]
Merge pull request #9 from sahne/master

Add diskusage support

8 years agoAdd diskusage support
Daniel Walter [Fri, 11 Mar 2016 11:18:23 +0000 (12:18 +0100)]
Add diskusage support

add support to show used disk for a given mountpoint

8 years agoUpdate README.md
Aaron Marcher [Thu, 10 Mar 2016 17:01:39 +0000 (18:01 +0100)]
Update README.md

8 years agoCreate TODO.md
Aaron Marcher [Thu, 10 Mar 2016 17:00:40 +0000 (18:00 +0100)]
Create TODO.md

8 years agoMerge pull request #8 from Vlaix/master
Aaron Marcher [Thu, 10 Mar 2016 16:29:20 +0000 (17:29 +0100)]
Merge pull request #8 from Vlaix/master

Fixed locale defaulting to English

8 years agoFixed locale defaulting to English
Vincent Loupmon [Thu, 10 Mar 2016 15:50:32 +0000 (16:50 +0100)]
Fixed locale defaulting to English

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.

8 years agoadded update_interval check to config_check()
Aaron Marcher [Thu, 10 Mar 2016 14:50:35 +0000 (15:50 +0100)]
added update_interval check to config_check()