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

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