suckless/slstatus.git
7 years agoupdated readme
Aaron Marcher [Mon, 12 Jun 2017 22:11:35 +0000 (00:11 +0200)]
updated readme

7 years agocheck for fgets/fscanf return values
Aaron Marcher [Mon, 12 Jun 2017 22:06:56 +0000 (00:06 +0200)]
check for fgets/fscanf return values

7 years agouse a static buffer instead of dynamic memory
Aaron Marcher [Mon, 12 Jun 2017 22:06:04 +0000 (00:06 +0200)]
use a static buffer instead of dynamic memory

7 years agoremove format characters from stat functions
Aaron Marcher [Mon, 12 Jun 2017 21:59:21 +0000 (23:59 +0200)]
remove format characters from stat functions

7 years agoadd cpu_freq function
Aaron Marcher [Mon, 12 Jun 2017 21:56:21 +0000 (23:56 +0200)]
add cpu_freq function

7 years agoadd battery_power function
Aaron Marcher [Mon, 12 Jun 2017 21:55:27 +0000 (23:55 +0200)]
add battery_power function

7 years agoadded option to output only once and exit afterwards
Aaron Marcher [Thu, 11 May 2017 17:06:45 +0000 (19:06 +0200)]
added option to output only once and exit afterwards

7 years agoenable stack protector and compile to position independent executable
Aaron Marcher [Thu, 20 Apr 2017 20:33:10 +0000 (22:33 +0200)]
enable stack protector and compile to position independent executable

7 years agosimplified and improved vol_perc()
Aaron Marcher [Thu, 20 Apr 2017 20:30:04 +0000 (22:30 +0200)]
simplified and improved vol_perc()

7 years agofix overflow in run_command()
Aaron Marcher [Thu, 20 Apr 2017 20:20:19 +0000 (22:20 +0200)]
fix overflow in run_command()

7 years agousername(): get rid of unneeded uid variable
Aaron Marcher [Thu, 20 Apr 2017 20:18:24 +0000 (22:18 +0200)]
username(): get rid of unneeded uid variable

7 years agoMerge pull request #39 from stoeckmann/fgets
Aaron Marcher [Thu, 20 Apr 2017 20:14:56 +0000 (22:14 +0200)]
Merge pull request #39 from stoeckmann/fgets

On success, fgets always terminates the result.

7 years agoOn success, fgets always terminates the result.
Tobias Stoeckmann [Tue, 4 Apr 2017 19:27:31 +0000 (21:27 +0200)]
On success, fgets always terminates the result.

If fgets succeeds, then the resulting char array is always
terminated by a '\0'. No need to keep extra space, therefore
sizeof(buf) is the correct argument.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
7 years agoMerge pull request #38 from stoeckmann/terminating-nul
Aaron Marcher [Sun, 2 Apr 2017 13:27:09 +0000 (15:27 +0200)]
Merge pull request #38 from stoeckmann/terminating-nul

Fixed out of boundary write on long lines.

7 years agoFixed out of boundary write on long lines.
Tobias Stoeckmann [Sun, 2 Apr 2017 11:12:03 +0000 (13:12 +0200)]
Fixed out of boundary write on long lines.

The terminating nul character ('\0') could be written outside the boundary of
the buffer which is used to read characters. If "sizeof(buffer)" characters
are read, the resulting value must not be used as index, because that's an off
by one.

Read sizeof(buffer)-1 bytes instead.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
7 years agoloading thresholds state
Aaron Marcher [Thu, 30 Mar 2017 15:32:20 +0000 (17:32 +0200)]
loading thresholds state

7 years agoFixed XCloseDisplay() which is not reached in keyboard_indicators()
Aaron Marcher [Mon, 23 Jan 2017 20:01:41 +0000 (21:01 +0100)]
Fixed XCloseDisplay() which is not reached in keyboard_indicators()

7 years agoAdded keyboard_indicators (Fixes #31)
Aaron Marcher [Mon, 16 Jan 2017 11:10:56 +0000 (12:10 +0100)]
Added keyboard_indicators (Fixes #31)

7 years agoMakefile fix and vol_perc fix for mute
Aaron Marcher [Mon, 9 Jan 2017 11:05:29 +0000 (12:05 +0100)]
Makefile fix and vol_perc fix for mute

7 years agosimplified Makefile
Aaron Marcher [Mon, 9 Jan 2017 08:29:58 +0000 (09:29 +0100)]
simplified Makefile

7 years agosmall Makefile tweak
Aaron Marcher [Mon, 9 Jan 2017 08:23:17 +0000 (09:23 +0100)]
small Makefile tweak

7 years agoMakefile: Added back config.h handling in Makefile
Aaron Marcher [Mon, 9 Jan 2017 08:21:18 +0000 (09:21 +0100)]
Makefile: Added back config.h handling in Makefile

7 years agoMakefile: Fixes #35
Aaron Marcher [Mon, 9 Jan 2017 07:24:26 +0000 (08:24 +0100)]
Makefile: Fixes #35

7 years agotodo
Aaron Marcher [Sat, 7 Jan 2017 21:34:45 +0000 (22:34 +0100)]
todo

7 years agoremoved ./extern/
Aaron Marcher [Sat, 7 Jan 2017 21:33:28 +0000 (22:33 +0100)]
removed ./extern/

7 years agoremoved strlcat dependency (was used only once)
Aaron Marcher [Sat, 7 Jan 2017 21:31:46 +0000 (22:31 +0100)]
removed strlcat dependency (was used only once)

7 years agogot rid of concat.h
Aaron Marcher [Sat, 7 Jan 2017 21:01:49 +0000 (22:01 +0100)]
got rid of concat.h

7 years agosaner makefile: cleaner, simpler, suckless
Aaron Marcher [Sat, 7 Jan 2017 20:49:10 +0000 (21:49 +0100)]
saner makefile: cleaner, simpler, suckless

7 years agohappy new year!
Aaron Marcher [Sat, 7 Jan 2017 20:28:22 +0000 (21:28 +0100)]
happy new year!

7 years agorun_command: strlen() will not function if string is not null terminated
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

7 years agoconsistent coding style: usage() declaration, eval is a constant
Aaron Marcher [Fri, 30 Dec 2016 22:13:21 +0000 (23:13 +0100)]
consistent coding style: usage() declaration, eval is a constant

7 years agoMerge pull request #34 from parazyd/master
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

7 years agoMerge branch 'master' into master
parazyd [Fri, 30 Dec 2016 13:21:19 +0000 (14:21 +0100)]
Merge branch 'master' into master

7 years agoadd vol_perc notes, add braces to singleline statements
parazyd [Fri, 30 Dec 2016 11:16:07 +0000 (12:16 +0100)]
add vol_perc notes, add braces to singleline statements

7 years agowhy releases for such a small project? useless and overhead!
Aaron Marcher [Thu, 29 Dec 2016 22:36:05 +0000 (23:36 +0100)]
why releases for such a small project? useless and overhead!

7 years ago#undef strlcpy not needed anymore
Aaron Marcher [Thu, 29 Dec 2016 22:30:53 +0000 (23:30 +0100)]
#undef strlcpy not needed anymore

7 years agotested wifi
Aaron Marcher [Thu, 29 Dec 2016 22:30:17 +0000 (23:30 +0100)]
tested wifi

7 years agoMerge pull request #32 from R41z/master
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.

7 years agoMerge branch 'master' into master
Aaron Marcher [Thu, 29 Dec 2016 22:27:44 +0000 (23:27 +0100)]
Merge branch 'master' into master

7 years agofix TODO markdown syntax && update
raiz [Thu, 29 Dec 2016 12:37:17 +0000 (15:37 +0300)]
fix TODO markdown syntax && update

7 years agoadd braces to single statements so drkhsh doesn't be upset
raiz [Thu, 29 Dec 2016 09:40:43 +0000 (12:40 +0300)]
add braces to single statements so drkhsh doesn't be upset

7 years agokernel_release() coding style and position in code fix
Aaron Marcher [Wed, 28 Dec 2016 22:59:19 +0000 (23:59 +0100)]
kernel_release() coding style and position in code fix

7 years agorefactor vol_perc to not depend on alsa libraries
parazyd [Tue, 27 Dec 2016 23:41:51 +0000 (00:41 +0100)]
refactor vol_perc to not depend on alsa libraries

7 years agousage(): return success if -h is called && print more appropriate usage, opts can...
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

7 years agoanother TODO update
raiz [Tue, 27 Dec 2016 17:33:28 +0000 (20:33 +0300)]
another TODO update

7 years agoTODO update
raiz [Tue, 27 Dec 2016 17:32:22 +0000 (20:32 +0300)]
TODO update

7 years agohomepage update
raiz [Tue, 27 Dec 2016 17:20:45 +0000 (20:20 +0300)]
homepage update

7 years agoextern/concat.h: don't segfault if count == 0
raiz [Tue, 27 Dec 2016 17:18:33 +0000 (20:18 +0300)]
extern/concat.h: don't segfault if count == 0

7 years agowhhops, my bad
raiz [Tue, 27 Dec 2016 17:18:09 +0000 (20:18 +0300)]
whhops, my bad

7 years agowifi_essid: add boundary check && prevent the use of direct string literal as a forma...
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()

7 years agodon't allow the use of perc if uninitialized
raiz [Tue, 27 Dec 2016 17:09:07 +0000 (20:09 +0300)]
don't allow the use of perc if uninitialized

7 years agoremove misleading comment
raiz [Tue, 27 Dec 2016 16:57:16 +0000 (19:57 +0300)]
remove misleading comment

7 years agoget rid of set_status() since it's only used once
raiz [Tue, 27 Dec 2016 16:56:11 +0000 (19:56 +0300)]
get rid of set_status() since it's only used once

7 years agoallow the use of %* symbols in UNKNOWN_STR
raiz [Tue, 27 Dec 2016 16:53:46 +0000 (19:53 +0300)]
allow the use of %* symbols in UNKNOWN_STR

7 years agoadd extra error tests to swap_*() && fix bytes_read bug
raiz [Tue, 27 Dec 2016 16:49:31 +0000 (19:49 +0300)]
add extra error tests to swap_*() && fix bytes_read bug

7 years agoswap_*(): add more error tests
raiz [Tue, 27 Dec 2016 16:26:04 +0000 (19:26 +0300)]
swap_*(): add more error tests

7 years agofix delay in a cleaner way
raiz [Tue, 27 Dec 2016 16:12:39 +0000 (19:12 +0300)]
fix delay in a cleaner way

7 years agoremove newlines from warn() in swap_*(), those functions already print a newline...
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

7 years agoinititalize run_command()'s buf to UNKNOWN_STR by default
raiz [Tue, 27 Dec 2016 15:58:31 +0000 (18:58 +0300)]
inititalize run_command()'s buf to UNKNOWN_STR by default

7 years agoremove newline character from run_command() output accurately
raiz [Tue, 27 Dec 2016 15:57:27 +0000 (18:57 +0300)]
remove newline character from run_command() output accurately

7 years agostrtok() has no effect on buf && fgets() should have the full buffer length
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

7 years agowhhops
raiz [Sun, 18 Dec 2016 07:36:01 +0000 (10:36 +0300)]
whhops

7 years agoremove unused strlcpy() and reduce the size of output buffer
raiz [Sun, 18 Dec 2016 07:35:36 +0000 (10:35 +0300)]
remove unused strlcpy() and reduce the size of output buffer

7 years agoMerge pull request #30 from TheMRod/master
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

7 years agoAdd "uname -r" functionality
Mike Coddington [Thu, 3 Nov 2016 16:49:09 +0000 (11:49 -0500)]
Add "uname -r" functionality

7 years agoMerge pull request #25 from jodizzle/dev/swap
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

8 years agoswap: Print UNKNOWN_STR if no swap is allocated
Jody Leonard [Sat, 15 Oct 2016 23:50:02 +0000 (19:50 -0400)]
swap: Print UNKNOWN_STR if no swap is allocated

8 years agoUpdate README.md
Jody Leonard [Sat, 15 Oct 2016 10:49:33 +0000 (06:49 -0400)]
Update README.md

8 years agoEdit config.def.h function descriptions
Jody Leonard [Sat, 15 Oct 2016 10:36:21 +0000 (06:36 -0400)]
Edit config.def.h function descriptions

8 years agoAdd functions for measuring swap
Jody Leonard [Fri, 14 Oct 2016 09:44:46 +0000 (05:44 -0400)]
Add functions for measuring swap

8 years agoMerge pull request #24 from jodizzle/feat/mute
Aaron Marcher [Thu, 13 Oct 2016 10:15:18 +0000 (12:15 +0200)]
Merge pull request #24 from jodizzle/feat/mute

Restore "mute" message

8 years agovol_perc: Return "mute" when mixer is muted
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.

8 years agoMerge pull request #23 from R41z/master
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)

8 years agoget 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)

8 years agoadded quinq to contributors
Aaron Marcher [Mon, 10 Oct 2016 18:05:33 +0000 (20:05 +0200)]
added quinq to contributors

8 years agoadd setlocale() (mostly for datetime function)
Aaron Marcher [Mon, 10 Oct 2016 16:58:06 +0000 (18:58 +0200)]
add setlocale() (mostly for datetime function)

8 years agocheck daemon() return value
Aaron Marcher [Mon, 10 Oct 2016 16:52:46 +0000 (18:52 +0200)]
check daemon() return value

8 years agofixed run_command()
Aaron Marcher [Mon, 10 Oct 2016 07:19:44 +0000 (09:19 +0200)]
fixed run_command()

8 years agofixed run_command()
Aaron Marcher [Mon, 10 Oct 2016 07:02:24 +0000 (09:02 +0200)]
fixed run_command()

8 years agoremoved unnecessary fp, shorter return 0 and fixed compiler warning in vol_perc
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

8 years agoMerge pull request #20 from R41z/master
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

8 years agohostname: use POSIX routine to get hostname rather than reading from procfs
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

8 years agovol_perc: return zero if the value of max is set to zero
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

8 years agoadded name to LICENSE
Aaron Marcher [Wed, 5 Oct 2016 20:56:25 +0000 (22:56 +0200)]
added name to LICENSE

8 years agobetter default config.h
Aaron Marcher [Wed, 5 Oct 2016 09:40:36 +0000 (11:40 +0200)]
better default config.h

8 years ago3.0
Aaron Marcher [Mon, 19 Sep 2016 09:17:51 +0000 (11:17 +0200)]
3.0

8 years agobraces for one line statements in smprintf()
Aaron Marcher [Sun, 18 Sep 2016 20:01:44 +0000 (22:01 +0200)]
braces for one line statements in smprintf()

8 years agoshorter copyright notice and moved back VERSION and _GNU_SOURCE as the man page versi...
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

8 years agoMerge pull request #19 from R41z/master
Aaron Marcher [Sun, 18 Sep 2016 19:44:48 +0000 (21:44 +0200)]
Merge pull request #19 from R41z/master

several changes

8 years agoseveral changes
Ali H. Fardan [Sun, 18 Sep 2016 19:27:04 +0000 (22:27 +0300)]
several changes

8 years agoupdated man page according to readme
Aaron Marcher [Sun, 18 Sep 2016 19:08:21 +0000 (21:08 +0200)]
updated man page according to readme

8 years agoadded -v to manpage
Aaron Marcher [Sun, 18 Sep 2016 19:07:02 +0000 (21:07 +0200)]
added -v to manpage

8 years agolol, dwm != slstatus in manpage :D
Aaron Marcher [Sun, 18 Sep 2016 19:06:28 +0000 (21:06 +0200)]
lol, dwm != slstatus in manpage :D

8 years agoREADME.md reloaded
Aaron Marcher [Sun, 18 Sep 2016 15:51:25 +0000 (17:51 +0200)]
README.md reloaded

8 years agosuckless coding style -> added back function prototypes argument variable names
Aaron Marcher [Sun, 18 Sep 2016 15:26:01 +0000 (17:26 +0200)]
suckless coding style -> added back function prototypes argument variable names

8 years agoconfig.mk comment about -Wno-unused-functions
Aaron Marcher [Sun, 18 Sep 2016 15:22:12 +0000 (17:22 +0200)]
config.mk comment about -Wno-unused-functions

8 years agooptimization
Aaron Marcher [Sun, 18 Sep 2016 15:15:50 +0000 (17:15 +0200)]
optimization

8 years agoadded -v command line option
Aaron Marcher [Sun, 18 Sep 2016 15:03:53 +0000 (17:03 +0200)]
added -v command line option

8 years agosimpler usage
Aaron Marcher [Sun, 18 Sep 2016 14:57:55 +0000 (16:57 +0200)]
simpler usage

8 years agodo not exit on failed smprintf
Aaron Marcher [Sun, 18 Sep 2016 14:54:46 +0000 (16:54 +0200)]
do not exit on failed smprintf