This website requires JavaScript.
6890a27a3a
fixed run_command()
Aaron Marcher
2016-10-10 09:19:44 +02:00
5a70f920f0
fixed run_command()
Aaron Marcher
2016-10-10 09:02:24 +02:00
cc1bb3a344
removed unnecessary fp, shorter return 0 and fixed compiler warning in vol_perc
Aaron Marcher
2016-10-09 14:06:04 +02:00
5e7aa2a321
Merge pull request #20 from R41z/master
Aaron Marcher and GitHub
2016-10-09 13:50:02 +02:00
4339c8330a
hostname: use POSIX routine to get hostname rather than reading from procfs
Ali H. Fardan
2016-10-08 19:55:25 +03:00
fb440d8f62
vol_perc: return zero if the value of max is set to zero
user
2016-10-08 19:50:53 +03:00
6239e5de17
added name to LICENSE
Aaron Marcher
2016-10-05 22:56:25 +02:00
3a3a3e4101
better default config.h
Aaron Marcher
2016-10-05 11:40:36 +02:00
a2d2e801a2
3.0
Aaron Marcher
2016-09-19 11:17:51 +02:00
c5ace949e4
braces for one line statements in smprintf()
Aaron Marcher
2016-09-18 22:01:44 +02:00
bad8dc682d
shorter copyright notice and moved back VERSION and _GNU_SOURCE as the man page version number fails
Aaron Marcher
2016-09-18 22:00:50 +02:00
237a7720b7
Merge pull request #19 from R41z/master
Aaron Marcher and GitHub
2016-09-18 21:44:48 +02:00
f4a383382c
several changes
Ali H. Fardan
2016-09-18 22:27:04 +03:00
fd36f65cc7
updated man page according to readme
Aaron Marcher
2016-09-18 21:08:21 +02:00
fad39093cc
added -v to manpage
Aaron Marcher
2016-09-18 21:07:02 +02:00
915eeb8b49
lol, dwm != slstatus in manpage :D
Aaron Marcher
2016-09-18 21:06:28 +02:00
dd0f0cd30e
README.md reloaded
Aaron Marcher
2016-09-18 17:51:25 +02:00
0fe8e5a961
suckless coding style -> added back function prototypes argument variable names
Aaron Marcher
2016-09-18 17:26:01 +02:00
d1423010d0
config.mk comment about -Wno-unused-functions
Aaron Marcher
2016-09-18 17:22:12 +02:00
cfa0d9e8fe
optimization
Aaron Marcher
2016-09-18 17:15:50 +02:00
14749b6c87
added -v command line option
Aaron Marcher
2016-09-18 17:03:53 +02:00
dcc0cddee4
simpler usage
Aaron Marcher
2016-09-18 16:57:55 +02:00
db07244cb8
do not exit on failed smprintf
Aaron Marcher
2016-09-18 16:54:46 +02:00
2fdb2ede04
added man page
Aaron Marcher
2016-09-17 22:51:59 +02:00
4a7aba5151
added man page
Aaron Marcher
2016-09-17 22:51:49 +02:00
fd0bb713d7
added optimization back (removed it for debugging some time ago)
Aaron Marcher
2016-09-17 22:03:56 +02:00
9477f3b1d1
n/a for run_command()
Aaron Marcher
2016-09-17 18:16:27 +02:00
c8926634be
fuck newlines
Aaron Marcher
2016-09-17 18:10:26 +02:00
18f7d99909
removed TODO.md
Aaron Marcher
2016-09-17 18:08:31 +02:00
37959ca569
moved headers to extern
Aaron Marcher
2016-09-17 18:07:03 +02:00
d73118eaa4
shorter names
Aaron Marcher
2016-09-17 17:06:06 +02:00
2e012d533e
only open and close display if output type is dwm
Aaron Marcher
2016-09-17 16:53:45 +02:00
4dcba6b7e8
coding style fixes + better var names
Aaron Marcher
2016-09-17 16:51:21 +02:00
87eae6db03
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
Aaron Marcher
2016-09-16 23:31:24 +02:00
887b9bd3e3
fixed run_command()
Aaron Marcher
2016-09-14 18:42:51 +02:00
ad03218fd5
Merge pull request #18 from R41z/master
Aaron Marcher and GitHub
2016-09-14 16:47:28 +02:00
561de544e7
variable initialization is back
Ali H. Fardan
2016-09-14 17:42:48 +03:00
35f7862744
simplified run_command()
Ali H. Fardan
2016-09-14 16:20:20 +03:00
5609b9d9de
Merge pull request #17 from R41z/master
Aaron Marcher and GitHub
2016-09-14 11:27:19 +02:00
56fffbce64
improved hostname()
Ali H. Fardan
2016-09-14 12:22:03 +03:00
6edc959933
do not overwrite config.h if config.def.h changes
Aaron Marcher
2016-09-14 11:08:37 +02:00
1ad9f2504d
hostname() null terminaiton subtraction *is* needed
Aaron Marcher
2016-09-14 11:04:24 +02:00
bca9b5246a
Merge pull request #16 from R41z/master
Aaron Marcher and GitHub
2016-09-14 10:58:14 +02:00
bc38677f47
malloc sucks, you know?
Ali H. Fardan
2016-09-14 03:35:53 +03:00
f28e2682fd
* != **
Ali H. Fardan
2016-09-14 03:35:09 +03:00
3e04f1d910
minor improvements and memory leak fix
Ali H. Fardan
2016-09-14 03:31:01 +03:00
81e8da5d90
Merge branch 'master' of https://github.com/drkh5h/slstatus
Ali H. Fardan
2016-09-14 03:24:53 +03:00
f13104156f
battery_state() function added
Aaron Marcher
2016-09-13 22:03:36 +02:00
7aad78bd95
fixed vol_perc() typo and added % sign again
Aaron Marcher
2016-09-13 21:11:11 +02:00
87c1377b08
simplified vol_perc() (and with that config.def.h is super clean)
Aaron Marcher
2016-09-13 21:08:44 +02:00
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 and GitHub
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