suckless/slstatus.git
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 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

8 years agoadded man page
Aaron Marcher [Sat, 17 Sep 2016 20:51:59 +0000 (22:51 +0200)]
added man page

8 years agoadded man page
Aaron Marcher [Sat, 17 Sep 2016 20:51:49 +0000 (22:51 +0200)]
added man page

8 years agoadded optimization back (removed it for debugging some time ago)
Aaron Marcher [Sat, 17 Sep 2016 20:03:56 +0000 (22:03 +0200)]
added optimization back (removed it for debugging some time ago)

8 years agon/a for run_command()
Aaron Marcher [Sat, 17 Sep 2016 16:16:27 +0000 (18:16 +0200)]
n/a for run_command()

8 years agofuck newlines
Aaron Marcher [Sat, 17 Sep 2016 16:10:26 +0000 (18:10 +0200)]
fuck newlines

8 years agoremoved TODO.md
Aaron Marcher [Sat, 17 Sep 2016 16:08:31 +0000 (18:08 +0200)]
removed TODO.md

8 years agomoved headers to extern
Aaron Marcher [Sat, 17 Sep 2016 16:07:03 +0000 (18:07 +0200)]
moved headers to extern

8 years agoshorter names
Aaron Marcher [Sat, 17 Sep 2016 15:06:06 +0000 (17:06 +0200)]
shorter names

8 years agoonly open and close display if output type is dwm
Aaron Marcher [Sat, 17 Sep 2016 14:53:45 +0000 (16:53 +0200)]
only open and close display if output type is dwm

8 years agocoding style fixes + better var names
Aaron Marcher [Sat, 17 Sep 2016 14:51:21 +0000 (16:51 +0200)]
coding style fixes + better var names

8 years agoadded daemonization, output possibility to console (for other programs) and moved...
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

8 years agofixed run_command()
Aaron Marcher [Wed, 14 Sep 2016 16:42:51 +0000 (18:42 +0200)]
fixed run_command()

8 years agoMerge pull request #18 from R41z/master
Aaron Marcher [Wed, 14 Sep 2016 14:47:28 +0000 (16:47 +0200)]
Merge pull request #18 from R41z/master

simplified run_command()

8 years agovariable initialization is back
Ali H. Fardan [Wed, 14 Sep 2016 14:42:48 +0000 (17:42 +0300)]
variable initialization is back

8 years agosimplified run_command()
Ali H. Fardan [Wed, 14 Sep 2016 13:20:20 +0000 (16:20 +0300)]
simplified run_command()

8 years agoMerge pull request #17 from R41z/master
Aaron Marcher [Wed, 14 Sep 2016 09:27:19 +0000 (11:27 +0200)]
Merge pull request #17 from R41z/master

improved hostname()

8 years agoimproved hostname()
Ali H. Fardan [Wed, 14 Sep 2016 09:22:03 +0000 (12:22 +0300)]
improved hostname()

8 years agodo not overwrite config.h if config.def.h changes
Aaron Marcher [Wed, 14 Sep 2016 09:08:37 +0000 (11:08 +0200)]
do not overwrite config.h if config.def.h changes

8 years agohostname() null terminaiton subtraction *is* needed
Aaron Marcher [Wed, 14 Sep 2016 09:04:24 +0000 (11:04 +0200)]
hostname() null terminaiton subtraction *is* needed

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

8 years agomalloc sucks, you know?
Ali H. Fardan [Wed, 14 Sep 2016 00:35:53 +0000 (03:35 +0300)]
malloc sucks, you know?

8 years ago* != **
Ali H. Fardan [Wed, 14 Sep 2016 00:35:09 +0000 (03:35 +0300)]
* != **

8 years agominor improvements and memory leak fix
Ali H. Fardan [Wed, 14 Sep 2016 00:31:01 +0000 (03:31 +0300)]
minor improvements and memory leak fix

8 years agoMerge branch 'master' of https://github.com/drkh5h/slstatus
Ali H. Fardan [Wed, 14 Sep 2016 00:24:53 +0000 (03:24 +0300)]
Merge branch 'master' of https://github.com/drkh5h/slstatus

8 years agobattery_state() function added
Aaron Marcher [Tue, 13 Sep 2016 20:03:36 +0000 (22:03 +0200)]
battery_state() function added

8 years agofixed vol_perc() typo and added % sign again
Aaron Marcher [Tue, 13 Sep 2016 19:11:11 +0000 (21:11 +0200)]
fixed vol_perc() typo and added % sign again

8 years agosimplified vol_perc() (and with that config.def.h is super clean)
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)

8 years agolol, battery_perc() is even simpler, fuck this shit :D
Aaron Marcher [Tue, 13 Sep 2016 19:05:49 +0000 (21:05 +0200)]
lol, battery_perc() is even simpler, fuck this shit :D

8 years agosimplified battery_perc() a lot and removed useless options from config.def.h
Aaron Marcher [Tue, 13 Sep 2016 18:54:45 +0000 (20:54 +0200)]
simplified battery_perc() a lot and removed useless options from config.def.h

8 years agoloop's not needed anymore
Aaron Marcher [Tue, 13 Sep 2016 17:35:54 +0000 (19:35 +0200)]
loop's not needed anymore

8 years agoset old WM_NAME content before exiting
Aaron Marcher [Tue, 13 Sep 2016 17:34:25 +0000 (19:34 +0200)]
set old WM_NAME content before exiting

8 years agosighandle forgot const
Aaron Marcher [Tue, 13 Sep 2016 17:21:54 +0000 (19:21 +0200)]
sighandle forgot const

8 years agosignal handling to exit gracefully + small coding style fixes
Aaron Marcher [Tue, 13 Sep 2016 17:09:01 +0000 (19:09 +0200)]
signal handling to exit gracefully + small coding style fixes

8 years agosimplify status_string clearing
Aaron Marcher [Tue, 13 Sep 2016 16:57:56 +0000 (18:57 +0200)]
simplify status_string clearing

8 years agoFixes issue #15. Forgot to close() a socket in wifi_essid()...
Aaron Marcher [Tue, 13 Sep 2016 16:54:15 +0000 (18:54 +0200)]
Fixes issue #15. Forgot to close() a socket in wifi_essid()...

8 years agosubtraction is unneeded
Ali H. Fardan [Mon, 12 Sep 2016 10:51:43 +0000 (13:51 +0300)]
subtraction is unneeded

8 years agocoding style (global variables)
Aaron Marcher [Mon, 12 Sep 2016 10:12:11 +0000 (12:12 +0200)]
coding style (global variables)

8 years agoMerge pull request #14 from R41z/master
Aaron Marcher [Mon, 12 Sep 2016 09:47:48 +0000 (11:47 +0200)]
Merge pull request #14 from R41z/master

cpu_perc() workaround

8 years agofixed wifi_perc() typo
Aaron Marcher [Mon, 12 Sep 2016 09:28:54 +0000 (11:28 +0200)]
fixed wifi_perc() typo

8 years agofixed (hopefully) the vol_perc() function
Ali H. Fardan [Sun, 11 Sep 2016 10:57:04 +0000 (13:57 +0300)]
fixed (hopefully) the vol_perc() function

8 years agofixed cpu_perc() stupidity && added some useful comment for drkh5h
Ali H. Fardan [Sun, 11 Sep 2016 10:33:35 +0000 (13:33 +0300)]
fixed cpu_perc() stupidity && added some useful comment for drkh5h

8 years agoadded my fancy icon
Aaron Marcher [Fri, 9 Sep 2016 19:12:13 +0000 (21:12 +0200)]
added my fancy icon

8 years agobrought back update interval
Aaron Marcher [Fri, 9 Sep 2016 17:26:06 +0000 (19:26 +0200)]
brought back update interval

8 years agoremoved more unneeded comments
Aaron Marcher [Fri, 9 Sep 2016 17:21:26 +0000 (19:21 +0200)]
removed more unneeded comments

8 years agofixed username function (wtf happened here?)
Aaron Marcher [Fri, 9 Sep 2016 17:19:46 +0000 (19:19 +0200)]
fixed username function (wtf happened here?)

8 years agofixed run_command behaviour for emtpy command output (uninitialized)
Aaron Marcher [Fri, 9 Sep 2016 17:18:14 +0000 (19:18 +0200)]
fixed run_command behaviour for emtpy command output (uninitialized)

8 years agocoding style fixes
Aaron Marcher [Fri, 9 Sep 2016 17:15:43 +0000 (19:15 +0200)]
coding style fixes

8 years agoremoved that status_reset (we will do that with signals) and loop.sh (we wont need it)
Aaron Marcher [Fri, 9 Sep 2016 17:12:08 +0000 (19:12 +0200)]
removed that status_reset (we will do that with signals) and loop.sh (we wont need it)

8 years agoMerge branch 'R41z-master'
Aaron Marcher [Fri, 9 Sep 2016 17:07:25 +0000 (19:07 +0200)]
Merge branch 'R41z-master'

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()