Commit graph

28 commits

Author SHA1 Message Date
aidan
b7d1970488 Consolidated X11 based code into the setroot function
This is to make it easier to build dwmblocks without xlib so you can
use it on wayland or other x wms.
2020-09-05 15:48:54 -06:00
aidan
13c7700f34 Fixed issue with empty command delimiter
This meant that the delimiters were added when when both the icon and
output where empty.
2020-08-29 11:58:28 -06:00
torrinfail
3d308cafb0
Merge pull request #29 from keikari/patch-2
Fix, delimLen caused weird behaviour
2020-08-27 06:51:30 +00:00
aidan
500b1fbb0f fixed output from commands without a newline end.
This is useful when using commands such as tr -d '\n' to strip newlines
from output.
2020-08-27 04:47:07 +00:00
aidan
416a36d636 Unified style for if, for, and while statements. As well as general
code cleanup.
2020-08-19 10:10:43 -06:00
keikari
d581dae180
Update dwmblocks.c 2020-08-16 12:21:46 +03:00
keikari
86d7ae90b7
Update dwmblocks.c 2020-08-16 12:20:15 +03:00
keikari
0bd4575574
Small fix
delimLen didn't count in null-terminator.
On line 62 the null terminator character doesn't get copied.
2020-08-15 21:43:18 +03:00
aidan
941f415b38 Manual merge of pull request #19. This adds multi-character delimiter.
Thanks to tph5595.
2020-08-14 12:36:38 -06:00
aidan
9c5aec5cd5 Removed call to redundant call to exit() 2020-08-14 01:15:32 -06:00
aidan
5dcb2a0d84 fixed signal handling on OpenBSD by using SIGUSR1 instead of SIGRTMIN.
This should not affect other platforms at all.
2020-08-12 10:24:42 -06:00
torrinfail
d2e6d20ebf
Merge pull request #15 from tomboehmer/issue9
Fixes #9 - determine the size of the status buffer based on the number of blocks
2020-08-11 20:04:51 -07:00
torrinfail
31b9d65b31
Merge pull request #8 from markcaudill/master
This merge adds fix for issue #5 which @markcaudill fixed by having all real-time signals handled by a dummy handler if it doesn't have a refresh signal .
2020-06-11 01:13:49 -06:00
Tom Böhmer
4d92b6ca6c Fixes #9 - determine the size of the status buffer based on the number of blocks
prevents dwmblocks from crashing because of the status string getting
longer than the underlying buffer
2020-05-28 18:25:26 +02:00
aidan
030de220e4 removed unused replace function 2020-04-16 01:03:30 -06:00
Mark Caudill
06710ebd05 Proposed fix for issue #5.
Initialize all signals from RTMIN to RTMAX with a dummy handler before
actually setting the "real" handlers.
2020-04-01 11:45:00 -04:00
Aidan
fa4eeff38d Added ifndef for openbsd compatibility. SIGRTMIN is not defined on
OpenBSD.
2019-12-16 14:35:29 -07:00
Aidan
377f990331 Switched to fgets instead of using fgetc 2019-11-30 14:43:33 -07:00
Aidan
09a00ab345 fixed issue causing segfault on ARM systems 2019-11-30 02:05:10 -07:00
Aidan Hubert
b685f2805f Fixed garbled last commit 2019-11-27 05:50:38 +00:00
Aidan
1766af7d5e Added -p option for printing to stdout rather then setting the root window for compatibility with other wms. 2019-11-26 22:43:16 -07:00
Aidan
5ff59d4e8b Made dwmblocks way more efficient by only setting the name of the root window when something has changed. 2019-11-13 13:58:20 -07:00
Aidan
72dc44f963 Revert "Changed delimeter to accept multiple characters."
Bug was found where certain modules caused dwm to lag horribly.
Reverting until a fix can be found.
This reverts commit 3da92ebccb.
2019-11-07 13:07:19 -07:00
Aidan
3da92ebccb Changed delimeter to accept multiple characters. 2019-11-04 15:34:34 -07:00
Aidan
690475e1e5 added icons and delimeter 2019-03-29 21:10:46 -06:00
Aidan
ce861dd798 Fixed for loop in getstatus() 2019-03-24 22:32:08 -06:00
Aidan
5ba902a666 Added function declarations and renamed setrootcmd to statusstr. 2019-03-24 21:51:40 -06:00
Aidan
c97d6d119e Added code files, and Makefile. 2019-03-24 16:31:05 -06:00