halhen/statnot

Remove dependence upon Xsetroot with calls to Xlib.

Closed this issue · 2 comments

In an attempt to reduce overhead on my netbook (a lowly 1.3GHz Atom), I've tried to centralize the workflow of statnot. Most of these would not be fit to resubmit to mainline (as they remove the dependence on ~/.statusline.sh and make editing the main script necessary). However, I did find that changing statnot to not depend on xsetroot is actually pretty simple. You can find a patch that implements this feature here: http://paste.pocoo.org/show/364878/. Admittedly, this centralizes everything at the cost of a non-standard library, but I'd argue that, at least on Arch linux, xsetroot is a 'non-standard package'.

Looks like I forgot to remove the import for subprocess, which doesn't seem to be necessary if you remove the xsetroot line. Unless you request it, I'm not going to regenerate the patch - it's pretty simple to do by hand and my version of statnot is currently extremely changed, so it'd be a bit difficult.

Hey,

Sorry for a late response. Much at work, family etc, etc...

I like the idea, and do in a way prefer it for my personal setup. However, statnot is not only used by users of dwm, but many different receivers. Part of the configuration is to write your own update_text to integrate however you like. Since this would create unneeded dependencies for some, I won't merge the patch but keep the external xsetroot call.