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

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

9 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

9 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

9 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.

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

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

10 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

10 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

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

10 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

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

10 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

10 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

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

10 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

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

10 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

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

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

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

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

10 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

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

10 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

10 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

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

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

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

10 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?)

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

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

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

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

10 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

10 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

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

10 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?

10 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

10 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

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

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

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

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

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

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

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

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

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

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

10 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

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

10 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

10 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

10 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!

10 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

10 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

10 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

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

10 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

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

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

10 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

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

10 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

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

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

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

10 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

10 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

10 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

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

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

10 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

10 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

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

10 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

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

10 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 /* */

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

10 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

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

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

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

10 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

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

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

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

10 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

10 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.

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

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

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

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

10 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

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

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

10 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

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

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