Aaron Marcher [Sat, 7 Jan 2017 20:28:22 +0000 (21:28 +0100)]
happy new year!
Aaron Marcher [Sat, 7 Jan 2017 20:19:40 +0000 (21:19 +0100)]
run_command: strlen() will not function if string is not null terminated
Aaron Marcher [Fri, 30 Dec 2016 22:13:21 +0000 (23:13 +0100)]
consistent coding style: usage() declaration, eval is a constant
Aaron Marcher [Fri, 30 Dec 2016 22:01:14 +0000 (23:01 +0100)]
Merge pull request #34 from parazyd/master
refactor vol_perc to not depend on alsa libraries
parazyd [Fri, 30 Dec 2016 13:21:19 +0000 (14:21 +0100)]
Merge branch 'master' into master
parazyd [Fri, 30 Dec 2016 11:16:07 +0000 (12:16 +0100)]
add vol_perc notes, add braces to singleline statements
Aaron Marcher [Thu, 29 Dec 2016 22:36:05 +0000 (23:36 +0100)]
why releases for such a small project? useless and overhead!
Aaron Marcher [Thu, 29 Dec 2016 22:30:53 +0000 (23:30 +0100)]
#undef strlcpy not needed anymore
Aaron Marcher [Thu, 29 Dec 2016 22:30:17 +0000 (23:30 +0100)]
tested wifi
Aaron Marcher [Thu, 29 Dec 2016 22:27:57 +0000 (23:27 +0100)]
Merge pull request #32 from R41z/master
several bugfixes and general improvements, see commits below.
Aaron Marcher [Thu, 29 Dec 2016 22:27:44 +0000 (23:27 +0100)]
Merge branch 'master' into master
raiz [Thu, 29 Dec 2016 12:37:17 +0000 (15:37 +0300)]
fix TODO markdown syntax && update
raiz [Thu, 29 Dec 2016 09:40:43 +0000 (12:40 +0300)]
add braces to single statements so drkhsh doesn't be upset
Aaron Marcher [Wed, 28 Dec 2016 22:59:19 +0000 (23:59 +0100)]
kernel_release() coding style and position in code fix
parazyd [Tue, 27 Dec 2016 23:41:51 +0000 (00:41 +0100)]
refactor vol_perc to not depend on alsa libraries
raiz [Tue, 27 Dec 2016 17:41:40 +0000 (20:41 +0300)]
usage(): return success if -h is called && print more appropriate usage, opts can't be all called at the same time, that's why a separator is required
raiz [Tue, 27 Dec 2016 17:33:28 +0000 (20:33 +0300)]
another TODO update
raiz [Tue, 27 Dec 2016 17:32:22 +0000 (20:32 +0300)]
TODO update
raiz [Tue, 27 Dec 2016 17:20:45 +0000 (20:20 +0300)]
homepage update
raiz [Tue, 27 Dec 2016 17:18:33 +0000 (20:18 +0300)]
extern/concat.h: don't segfault if count == 0
raiz [Tue, 27 Dec 2016 17:18:09 +0000 (20:18 +0300)]
whhops, my bad
raiz [Tue, 27 Dec 2016 17:14:45 +0000 (20:14 +0300)]
wifi_essid: add boundary check && prevent the use of direct string literal as a format string in snprintf()
raiz [Tue, 27 Dec 2016 17:09:07 +0000 (20:09 +0300)]
don't allow the use of perc if uninitialized
raiz [Tue, 27 Dec 2016 16:57:16 +0000 (19:57 +0300)]
remove misleading comment
raiz [Tue, 27 Dec 2016 16:56:11 +0000 (19:56 +0300)]
get rid of set_status() since it's only used once
raiz [Tue, 27 Dec 2016 16:53:46 +0000 (19:53 +0300)]
allow the use of %* symbols in UNKNOWN_STR
raiz [Tue, 27 Dec 2016 16:49:31 +0000 (19:49 +0300)]
add extra error tests to swap_*() && fix bytes_read bug
raiz [Tue, 27 Dec 2016 16:26:04 +0000 (19:26 +0300)]
swap_*(): add more error tests
raiz [Tue, 27 Dec 2016 16:12:39 +0000 (19:12 +0300)]
fix delay in a cleaner way
raiz [Tue, 27 Dec 2016 16:07:19 +0000 (19:07 +0300)]
remove newlines from warn() in swap_*(), those functions already print a newline after printing string stderr
raiz [Tue, 27 Dec 2016 15:58:31 +0000 (18:58 +0300)]
inititalize run_command()'s buf to UNKNOWN_STR by default
raiz [Tue, 27 Dec 2016 15:57:27 +0000 (18:57 +0300)]
remove newline character from run_command() output accurately
raiz [Tue, 27 Dec 2016 15:54:16 +0000 (18:54 +0300)]
strtok() has no effect on buf && fgets() should have the full buffer length
raiz [Sun, 18 Dec 2016 07:36:01 +0000 (10:36 +0300)]
whhops
raiz [Sun, 18 Dec 2016 07:35:36 +0000 (10:35 +0300)]
remove unused strlcpy() and reduce the size of output buffer
Aaron Marcher [Wed, 16 Nov 2016 20:20:26 +0000 (21:20 +0100)]
Merge pull request #30 from TheMRod/master
Add a "uname -r" feature to see which kernel is running
Mike Coddington [Thu, 3 Nov 2016 16:49:09 +0000 (11:49 -0500)]
Add "uname -r" functionality
Aaron Marcher [Fri, 28 Oct 2016 14:27:19 +0000 (16:27 +0200)]
Merge pull request #25 from jodizzle/dev/swap
Add functions for measuring swap
Jody Leonard [Sat, 15 Oct 2016 23:50:02 +0000 (19:50 -0400)]
swap: Print UNKNOWN_STR if no swap is allocated
Jody Leonard [Sat, 15 Oct 2016 10:49:33 +0000 (06:49 -0400)]
Update README.md
Jody Leonard [Sat, 15 Oct 2016 10:36:21 +0000 (06:36 -0400)]
Edit config.def.h function descriptions
Jody Leonard [Fri, 14 Oct 2016 09:44:46 +0000 (05:44 -0400)]
Add functions for measuring swap
Aaron Marcher [Thu, 13 Oct 2016 10:15:18 +0000 (12:15 +0200)]
Merge pull request #24 from jodizzle/feat/mute
Restore "mute" message
Jody Leonard [Thu, 13 Oct 2016 07:20:36 +0000 (03:20 -0400)]
vol_perc: Return "mute" when mixer is muted
This feature was originally removed as part of
52d19f9.
Aaron Marcher [Wed, 12 Oct 2016 20:01:46 +0000 (22:01 +0200)]
Merge pull request #23 from R41z/master
get rid of unused variable (silly gcc did not report that error)
Ali H. Fardan [Wed, 12 Oct 2016 17:54:45 +0000 (20:54 +0300)]
get rid of unused variable (silly gcc did not report that error)
Aaron Marcher [Mon, 10 Oct 2016 18:05:33 +0000 (20:05 +0200)]
added quinq to contributors
Aaron Marcher [Mon, 10 Oct 2016 16:58:06 +0000 (18:58 +0200)]
add setlocale() (mostly for datetime function)
Aaron Marcher [Mon, 10 Oct 2016 16:52:46 +0000 (18:52 +0200)]
check daemon() return value
Aaron Marcher [Mon, 10 Oct 2016 07:19:44 +0000 (09:19 +0200)]
fixed run_command()
Aaron Marcher [Mon, 10 Oct 2016 07:02:24 +0000 (09:02 +0200)]
fixed run_command()
Aaron Marcher [Sun, 9 Oct 2016 12:06:04 +0000 (14:06 +0200)]
removed unnecessary fp, shorter return 0 and fixed compiler warning in vol_perc
Aaron Marcher [Sun, 9 Oct 2016 11:50:02 +0000 (13:50 +0200)]
Merge pull request #20 from R41z/master
fix division by zero in vol_perc, and hostname() rewrite
Ali H. Fardan [Sat, 8 Oct 2016 16:55:25 +0000 (19:55 +0300)]
hostname: use POSIX routine to get hostname rather than reading from procfs
user [Sat, 8 Oct 2016 16:50:53 +0000 (19:50 +0300)]
vol_perc: return zero if the value of max is set to zero
Aaron Marcher [Wed, 5 Oct 2016 20:56:25 +0000 (22:56 +0200)]
added name to LICENSE
Aaron Marcher [Wed, 5 Oct 2016 09:40:36 +0000 (11:40 +0200)]
better default config.h
Aaron Marcher [Mon, 19 Sep 2016 09:17:51 +0000 (11:17 +0200)]
3.0
Aaron Marcher [Sun, 18 Sep 2016 20:01:44 +0000 (22:01 +0200)]
braces for one line statements in smprintf()
Aaron Marcher [Sun, 18 Sep 2016 20:00:50 +0000 (22:00 +0200)]
shorter copyright notice and moved back VERSION and _GNU_SOURCE as the man page version number fails
Aaron Marcher [Sun, 18 Sep 2016 19:44:48 +0000 (21:44 +0200)]
Merge pull request #19 from R41z/master
several changes
Ali H. Fardan [Sun, 18 Sep 2016 19:27:04 +0000 (22:27 +0300)]
several changes
Aaron Marcher [Sun, 18 Sep 2016 19:08:21 +0000 (21:08 +0200)]
updated man page according to readme
Aaron Marcher [Sun, 18 Sep 2016 19:07:02 +0000 (21:07 +0200)]
added -v to manpage
Aaron Marcher [Sun, 18 Sep 2016 19:06:28 +0000 (21:06 +0200)]
lol, dwm != slstatus in manpage :D
Aaron Marcher [Sun, 18 Sep 2016 15:51:25 +0000 (17:51 +0200)]
README.md reloaded
Aaron Marcher [Sun, 18 Sep 2016 15:26:01 +0000 (17:26 +0200)]
suckless coding style -> added back function prototypes argument variable names
Aaron Marcher [Sun, 18 Sep 2016 15:22:12 +0000 (17:22 +0200)]
config.mk comment about -Wno-unused-functions
Aaron Marcher [Sun, 18 Sep 2016 15:15:50 +0000 (17:15 +0200)]
optimization
Aaron Marcher [Sun, 18 Sep 2016 15:03:53 +0000 (17:03 +0200)]
added -v command line option
Aaron Marcher [Sun, 18 Sep 2016 14:57:55 +0000 (16:57 +0200)]
simpler usage
Aaron Marcher [Sun, 18 Sep 2016 14:54:46 +0000 (16:54 +0200)]
do not exit on failed smprintf
Aaron Marcher [Sat, 17 Sep 2016 20:51:59 +0000 (22:51 +0200)]
added man page
Aaron Marcher [Sat, 17 Sep 2016 20:51:49 +0000 (22:51 +0200)]
added man page
Aaron Marcher [Sat, 17 Sep 2016 20:03:56 +0000 (22:03 +0200)]
added optimization back (removed it for debugging some time ago)
Aaron Marcher [Sat, 17 Sep 2016 16:16:27 +0000 (18:16 +0200)]
n/a for run_command()
Aaron Marcher [Sat, 17 Sep 2016 16:10:26 +0000 (18:10 +0200)]
fuck newlines
Aaron Marcher [Sat, 17 Sep 2016 16:08:31 +0000 (18:08 +0200)]
removed TODO.md
Aaron Marcher [Sat, 17 Sep 2016 16:07:03 +0000 (18:07 +0200)]
moved headers to extern
Aaron Marcher [Sat, 17 Sep 2016 15:06:06 +0000 (17:06 +0200)]
shorter names
Aaron Marcher [Sat, 17 Sep 2016 14:53:45 +0000 (16:53 +0200)]
only open and close display if output type is dwm
Aaron Marcher [Sat, 17 Sep 2016 14:51:21 +0000 (16:51 +0200)]
coding style fixes + better var names
Aaron Marcher [Fri, 16 Sep 2016 21:31:24 +0000 (23:31 +0200)]
added daemonization, output possibility to console (for other programs) and moved the code to set WM_NAME to its own function as it is needed two times
Aaron Marcher [Wed, 14 Sep 2016 16:42:51 +0000 (18:42 +0200)]
fixed run_command()
Aaron Marcher [Wed, 14 Sep 2016 14:47:28 +0000 (16:47 +0200)]
Merge pull request #18 from R41z/master
simplified run_command()
Ali H. Fardan [Wed, 14 Sep 2016 14:42:48 +0000 (17:42 +0300)]
variable initialization is back
Ali H. Fardan [Wed, 14 Sep 2016 13:20:20 +0000 (16:20 +0300)]
simplified run_command()
Aaron Marcher [Wed, 14 Sep 2016 09:27:19 +0000 (11:27 +0200)]
Merge pull request #17 from R41z/master
improved hostname()
Ali H. Fardan [Wed, 14 Sep 2016 09:22:03 +0000 (12:22 +0300)]
improved hostname()
Aaron Marcher [Wed, 14 Sep 2016 09:08:37 +0000 (11:08 +0200)]
do not overwrite config.h if config.def.h changes
Aaron Marcher [Wed, 14 Sep 2016 09:04:24 +0000 (11:04 +0200)]
hostname() null terminaiton subtraction *is* needed
Aaron Marcher [Wed, 14 Sep 2016 08:58:14 +0000 (10:58 +0200)]
Merge pull request #16 from R41z/master
several improvements && memory leak fix.
Ali H. Fardan [Wed, 14 Sep 2016 00:35:53 +0000 (03:35 +0300)]
malloc sucks, you know?
Ali H. Fardan [Wed, 14 Sep 2016 00:35:09 +0000 (03:35 +0300)]
* != **
Ali H. Fardan [Wed, 14 Sep 2016 00:31:01 +0000 (03:31 +0300)]
minor improvements and memory leak fix
Ali H. Fardan [Wed, 14 Sep 2016 00:24:53 +0000 (03:24 +0300)]
Merge branch 'master' of https://github.com/drkh5h/slstatus
Aaron Marcher [Tue, 13 Sep 2016 20:03:36 +0000 (22:03 +0200)]
battery_state() function added
Aaron Marcher [Tue, 13 Sep 2016 19:11:11 +0000 (21:11 +0200)]
fixed vol_perc() typo and added % sign again
Aaron Marcher [Tue, 13 Sep 2016 19:08:44 +0000 (21:08 +0200)]
simplified vol_perc() (and with that config.def.h is super clean)
Aaron Marcher [Tue, 13 Sep 2016 19:05:49 +0000 (21:05 +0200)]
lol, battery_perc() is even simpler, fuck this shit :D