aidan
b6b0be4f4f
Only open X server once rather than open and close after every writeout.
5 years ago
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.
5 years ago
aidan
13c7700f34
Fixed issue with empty command delimiter
...
This meant that the delimiters were added when when both the icon and
output where empty.
5 years ago
torrinfail
3d308cafb0
Merge pull request #29 from keikari/patch-2
...
Fix, delimLen caused weird behaviour
5 years ago
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.
5 years ago
aidan
416a36d636
Unified style for if, for, and while statements. As well as general
...
code cleanup.
5 years ago
keikari
d581dae180
Update dwmblocks.c
5 years ago
keikari
86d7ae90b7
Update dwmblocks.c
5 years ago
keikari
0bd4575574
Small fix
...
delimLen didn't count in null-terminator.
On line 62 the null terminator character doesn't get copied.
5 years ago
aidan
941f415b38
Manual merge of pull request #19 . This adds multi-character delimiter.
...
Thanks to tph5595.
5 years ago
aidan
9c5aec5cd5
Removed call to redundant call to exit()
5 years ago
aidan
5dcb2a0d84
fixed signal handling on OpenBSD by using SIGUSR1 instead of SIGRTMIN.
...
This should not affect other platforms at all.
5 years ago
torrinfail
d2e6d20ebf
Merge pull request #15 from tomboehmer/issue9
...
Fixes #9 - determine the size of the status buffer based on the number of blocks
5 years ago
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 .
5 years ago
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
5 years ago
aidan
030de220e4
removed unused replace function
5 years ago
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.
5 years ago
Aidan
fa4eeff38d
Added ifndef for openbsd compatibility. SIGRTMIN is not defined on
...
OpenBSD.
5 years ago
Aidan
377f990331
Switched to fgets instead of using fgetc
5 years ago
Aidan
09a00ab345
fixed issue causing segfault on ARM systems
5 years ago
Aidan Hubert
b685f2805f
Fixed garbled last commit
5 years ago
Aidan
1766af7d5e
Added -p option for printing to stdout rather then setting the root window for compatibility with other wms.
5 years ago
Aidan
5ff59d4e8b
Made dwmblocks way more efficient by only setting the name of the root window when something has changed.
5 years ago
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
.
5 years ago
Aidan
3da92ebccb
Changed delimeter to accept multiple characters.
5 years ago
Aidan
690475e1e5
added icons and delimeter
6 years ago
Aidan
ce861dd798
Fixed for loop in getstatus()
6 years ago
Aidan
5ba902a666
Added function declarations and renamed setrootcmd to statusstr.
6 years ago
Aidan
c97d6d119e
Added code files, and Makefile.
6 years ago