This website requires JavaScript.
74b6e340f2
lol, battery_perc() is even simpler, fuck this shit :D
Aaron Marcher
2016-09-13 21:05:49 +02:00
2d1bbf0d35
simplified battery_perc() a lot and removed useless options from config.def.h
Aaron Marcher
2016-09-13 20:54:45 +02:00
60df4f0f05
loop's not needed anymore
Aaron Marcher
2016-09-13 19:35:54 +02:00
98e7324010
set old WM_NAME content before exiting
Aaron Marcher
2016-09-13 19:34:25 +02:00
ba2947ae45
sighandle forgot const
Aaron Marcher
2016-09-13 19:21:54 +02:00
67d3f9c540
signal handling to exit gracefully + small coding style fixes
Aaron Marcher
2016-09-13 19:09:01 +02:00
a1c962f8a3
simplify status_string clearing
Aaron Marcher
2016-09-13 18:57:56 +02:00
75b1853313
Fixes issue #15 . Forgot to close() a socket in wifi_essid()...
Aaron Marcher
2016-09-13 18:54:15 +02:00
e6158e300d
subtraction is unneeded
Ali H. Fardan
2016-09-12 13:51:43 +03:00
d19d4aa2e8
coding style (global variables)
Aaron Marcher
2016-09-12 12:12:11 +02:00
c0647e946f
Merge pull request #14 from R41z/master
Aaron Marcher
2016-09-12 11:47:48 +02:00
d5fb46e61d
fixed wifi_perc() typo
Aaron Marcher
2016-09-12 11:28:54 +02:00
6cb5af2bd7
fixed (hopefully) the vol_perc() function
Ali H. Fardan
2016-09-11 13:57:04 +03:00
6d23d53d1f
fixed cpu_perc() stupidity && added some useful comment for drkh5h
Ali H. Fardan
2016-09-11 13:33:35 +03:00
f901f4cece
added my fancy icon
Aaron Marcher
2016-09-09 21:12:13 +02:00
217da011dd
brought back update interval
Aaron Marcher
2016-09-09 19:26:06 +02:00
81997b327c
removed more unneeded comments
Aaron Marcher
2016-09-09 19:21:26 +02:00
545f1560e6
fixed username function (wtf happened here?)
Aaron Marcher
2016-09-09 19:19:46 +02:00
98f3985d3e
fixed run_command behaviour for emtpy command output (uninitialized)
Aaron Marcher
2016-09-09 19:18:14 +02:00
3bfa5fe60d
coding style fixes
Aaron Marcher
2016-09-09 19:15:43 +02:00
7710c9ed85
removed that status_reset (we will do that with signals) and loop.sh (we wont need it)
Aaron Marcher
2016-09-09 19:12:08 +02:00
6518f41b1f
Merge branch 'R41z-master'
Aaron Marcher
2016-09-09 19:07:25 +02:00
9b2dc25348
use warn[x]() instead of long fprintf()s
Ali H. Fardan
2016-09-08 04:45:00 +03:00
2afea97987
used ccat() from concat.h for string concatenation
Ali H. Fardan
2016-09-08 04:31:49 +03:00
113979e5b8
fixed some mistakes
Ali H. Fardan
2016-09-05 02:28:18 +03:00
720328cef9
what kind of weed is that?
Ali H. Fardan
2016-09-05 02:17:30 +03:00
b9b6486cda
bringed back the old config.mk
Ali H. Fardan
2016-09-05 01:40:47 +03:00
a66b73f5f2
bringed back the old config.mk
Ali H. Fardan
2016-09-05 01:40:10 +03:00
a4beda8eb9
bringed back the loop
Ali H. Fardan
2016-09-05 01:21:03 +03:00
52d19f955e
imported a new vol_perc() function, this should fix #12 (UNTESTED)
Ali H. Fardan
2016-09-05 01:18:55 +03:00
9fa858daea
added a tool for resetting the status bar && worked around some issues && removed the makefile (we need a better one)
Ali H. Fardan
2016-09-05 01:13:48 +03:00
1654efe1d6
config.mk cleanup
Ali H. Fardan
2016-09-05 00:56:22 +03:00
d3d8b8ee03
added daemonization support
Ali H. Fardan
2016-09-04 00:10:49 +03:00
de4f20ace3
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().
Ali H. Fardan
2016-09-03 21:43:05 +03:00
b650c438f0
removed setstatus() && simplified main()
Ali H. Fardan
2016-09-02 22:13:58 +03:00
d1ae2e785d
NOTREACHED comment
Ali H. Fardan
2016-09-01 21:54:00 +03:00
d3a212da7e
simplified gid()
Ali H. Fardan
2016-09-01 21:51:32 +03:00
2f8335abf0
simplified uid() and fixed username()
Ali H. Fardan
2016-09-01 21:35:32 +03:00
825141633b
removed unnecessary typecast and added more comments
Ali H. Fardan
2016-09-01 21:15:40 +03:00
9e92d41db5
removed unneeded headers
Ali H. Fardan
2016-09-01 21:02:17 +03:00
aa70b66330
opened the file before the path concatenates, what an idiot
Ali H. Fardan
2016-08-31 14:29:27 +03:00
5e4dc85bb9
forgot to give entropy() some candy too
Ali H. Fardan
2016-08-31 06:10:53 +03:00
cd3c084957
slow down boy! you opened the file too early!
Ali H. Fardan
2016-08-31 06:00:14 +03:00
b800eb21a3
removed vol function from the default config file
Ali H. Fardan
2016-08-31 02:17:42 +03:00
0aefd57f9f
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
Ali H. Fardan
2016-08-30 21:50:40 +03:00
5829cee24e
used a different implementation of smprintf() imported from dwmstatus
Ali H. Fardan
2016-08-28 19:27:01 +03:00
94a62b864b
worked around the buffer overrun in smprintf()
Ali H. Fardan
2016-08-28 18:19:53 +03:00
1d257999ed
removed heap dependency in datetime() and simplified the function
Ali H. Fardan
2016-08-28 16:39:04 +03:00
25eb9ff35e
FIXME: buffer overflow warning
Ali H. Fardan
2016-08-28 16:30:12 +03:00
24c4134df6
removed a misplaced ';'
Ali H. Fardan
2016-08-28 16:24:19 +03:00
47ddf9382e
used constant string literals && remote initialization to in battery_perc() && trying to fix possible buffer overflow
Ali H. Fardan
2016-08-28 16:20:50 +03:00
674602c6af
grammar correction
Ali H. Fardan
2016-08-28 15:33:31 +03:00
447283fda1
removing typecasts for pcm_mixer cause more issues than before
Ali H. Fardan
2016-08-25 23:26:17 +03:00
ee5337babe
typofix && another update
Ali H. Fardan
2016-08-23 14:16:45 +03:00
5b6097471f
another update to README
Ali H. Fardan
2016-08-23 14:13:23 +03:00
b79837b075
README update
Ali H. Fardan
2016-08-23 14:11:55 +03:00
f9f72a06f1
removed unnecessary typecasts (might be a reason for snd_mixer_selem_get_playback_volume_range bug
Ali H. Fardan
2016-08-23 13:27:42 +03:00
ff013b5fd4
status_string can hold 4096 bytes now
Ali H. Fardan
2016-08-21 16:00:34 +03:00
6f31ca6ce3
fixed compiler warnings in a better way
Ali H. Fardan
2016-08-21 15:43:57 +03:00
8e039b9dd2
corrected the time format
Ali H. Fardan
2016-08-21 15:21:20 +03:00
fc5ae33f95
rm .config.h.swp
Ali H. Fardan
2016-08-21 15:20:07 +03:00
f65fb9bca1
fixed the code, works now
Ali H. Fardan
2016-08-21 15:19:45 +03:00
0da2af8c62
Added myself to CONTRIBUTORS.md by drkh5h's request
Ali H. Fardan
2016-08-21 12:04:01 +03:00
b4f55e7170
(void)ed the prototypes
Ali H. Fardan
2016-08-21 12:00:51 +03:00
46b6876d7e
set local function as static
Ali H. Fardan
2016-08-21 11:28:42 +03:00
73ec65a84d
-Wextra
Ali H. Fardan
2016-08-21 11:10:37 +03:00
2e1eb518af
the code describes itself, there is no need to write stories in /* */
Ali H. Fardan
2016-08-21 11:10:14 +03:00
1853884520
braces are unneeded for one-liner if()/while()
Ali H. Fardan
2016-08-21 00:28:36 +03:00
e1ae7d3be6
added bounds checking via secure strl*() routines
Ali H. Fardan
2016-08-21 00:00:23 +03:00
5c86bbd67f
remove screenshot
Aaron Marcher
2016-08-18 15:03:43 +02:00
7d8f5f4882
update sloc count in readme
Aaron Marcher
2016-08-18 15:02:51 +02:00
a149ec06d9
remove todo item
Aaron Marcher
2016-08-18 15:01:19 +02:00
85dd971fb3
suckless coding style fix -> remove slstatus.h
Aaron Marcher
2016-08-18 14:55:05 +02:00
c15e66ce77
added all functions to readme
Aaron Marcher
2016-08-18 13:45:06 +02:00
85a2b9b79d
added uptime function
Aaron Marcher
2016-08-18 13:43:18 +02:00
83c98554ed
load avg
Aaron Marcher
2016-08-18 13:30:45 +02:00
1d43e2f2b2
added configuration option for n/a text
Aaron Marcher
2016-08-18 13:03:42 +02:00
f549d01864
Added \n to all error messages.
Aaron Marcher
2016-08-16 17:40:25 +02:00
f9748dcca3
Removed the debug gcc flags
Aaron Marcher
2016-08-16 17:34:50 +02:00
ad8ab20c63
Formatting commit :(
Aaron Marcher
2016-08-16 11:41:43 +02:00
ec35376127
simplified ram function
Aaron Marcher
2016-08-15 16:40:56 +02:00
85db24fef0
simplified wifi_essid by removing one malloc()
Aaron Marcher
2016-08-15 16:28:02 +02:00
58c1631235
this project is now licensed under the ISC license
Aaron Marcher
2016-08-15 16:10:42 +02:00
093f39df23
added wifi essid
Aaron Marcher
2016-08-15 14:43:29 +02:00
4170970c85
fixed strcat null possibility in main()
Aaron Marcher
2016-08-15 13:08:34 +02:00
df928892e8
fixed strlen-bomb in run_command
Aaron Marcher
2016-08-15 12:59:45 +02:00
086a70cde0
fixed memleak in datetime()
Aaron Marcher
2016-08-15 12:43:43 +02:00
a8d5bde6a5
void argument main()
Aaron Marcher
2016-08-15 12:34:45 +02:00
9078fb351d
Fixed alsa function + datetime function
Aaron Marcher
2016-08-15 12:26:00 +02:00
f6f0c895ce
Added shell command function
Aaron Marcher
2016-08-15 12:23:35 +02:00
3c1a03919f
revised readme
Aaron Marcher
2016-06-30 18:36:24 +02:00
2b8e204723
revised readme
Aaron Marcher
2016-06-30 18:29:11 +02:00
456be7ad1f
README update (included information)
Aaron Marcher
2016-06-14 19:19:25 +02:00
16716dd130
added, username, gid, uid
Aaron Marcher
2016-06-13 18:49:50 +02:00
fb524b6050
added disk functions for details
Aaron Marcher
2016-06-10 19:13:13 +02:00
688c2d43e2
added memory values ram functions
Aaron Marcher
2016-06-10 18:46:47 +02:00
c7f3a407f4
fixed hostname function and added HOST_NAME_MAX limit
Aaron Marcher
2016-06-10 18:22:05 +02:00
2e72b212d3
hostname function
Aaron Marcher
2016-06-10 15:53:07 +02:00
67203c6660
added ip address function
Aaron Marcher
2016-06-08 09:42:32 +02:00
5a943fa59c
added entropy
Aaron Marcher
2016-06-03 13:04:15 +02:00