Re: [dev] dwm: XKeycodeToKeysym deprecated patch
On 16 May 2012 02:58, Kurt H Maier wrote: > On Tue, May 15, 2012 at 09:52:10PM -0400, James Turner wrote: >> >> XKBlib.h has been around since 1993 is an extra header file really that >> bad? > > Are you arguing that it's good code because it's old code? You were arguing that it's bad because it's the "latest" mandate. I call subtle trolling
Re: [dev] dwm: XKeycodeToKeysym deprecated patch
On Wed, May 16, 2012 at 01:12:58PM +0100, Rob wrote: > You were arguing that it's bad because it's the "latest" mandate. No, I'm arguing that it's bad because it introduces more shit, and nobody has yet been able to explain what benefit that cost brings. > I call subtle trolling I call terrible reading comprehension
Re: [dev] Xft patch dwm 6.0
On May 16 2012, Lee Fallat wrote: So I was going over your patch and my changes to what you mentioned before, and I can't find any differences, even using diff. What did you do? Do you know why I'm having this odd coloring? It would be nice to know so I don't make the same mistake again twice : s Well first I changed getcolor to use XftColorAllocName. The colors were not messed up anymore (actually no text showed up), so I changed: &col[invert ? ColFG : ColBG] to &col[invert ? ColBG : ColFG] (in XftDrawStringUtf8). That's all I had to do :) David
Re: [dev] dwm: XKeycodeToKeysym deprecated patch
XKeycodeToKeysym returns faulty results in some cases/layouts. [0] Here is the original bug report [1] Here is the deprecation proposal [2] And the changelog linking to [0] [0]: https://bugs.freedesktop.org/show_bug.cgi?id=25732 [1]: https://bugs.freedesktop.org/show_bug.cgi?id=5349 [2]: http://www.x.org/releases/X11R7.6/changelog.txt > XKeycodeToKeysym keeps compatibility with pre-Xkb > and thus only sees 2 groups with 2 levels each. It wraps > the index into the next group. On 16 May 2012 15:18, Kurt H Maier wrote: > On Wed, May 16, 2012 at 01:12:58PM +0100, Rob wrote: > > You were arguing that it's bad because it's the "latest" mandate. > > No, I'm arguing that it's bad because it introduces more shit, and > nobody has yet been able to explain what benefit that cost brings. > > > I call subtle trolling > > I call terrible reading comprehension > > -- *Ivan c00kiemon5ter V Kanakarakis* >:3
Re: [dev] dwm: XKeycodeToKeysym deprecated patch
On Wed, May 16, 2012 at 03:34:25PM +0300, Ivan Kanakarakis wrote: > XKeycodeToKeysym returns faulty results in some cases/layouts. Thanks, this is the sort of information I was looking for.
Re: [dev] I messed up...used glib, dbus, and friends. Need help to fix this mistake
The system is an embedded system. However, it is quite powerful in the sense it has a dual core CPU and ample RAM. It is running just a standard linux desktop distro right now during the prototype stage. The applications on top have no requirement to be portable. Since there was enough resources, I thought using these libraries is good enough and I don't have to worry about reinventing the wheel. > > 1. Mounting USB disks, partitions, and samba shares. > > - Suckless alternative: libc, libmount? > > Why not just use mount(1) and mount(2)? > GIO/gvfs had interfaces to do mounts asynchronously and call a callback function when it was done. > > > 3. Spawn tasks asynchronously and return the stderr and stdout > > output. > > - Suckless alternative: libspawn > > popen(3), or just fork/dup2/exec. Is there a way to do these asynchronously? > > > > 4. Dictionary data type to store key value pairs. > > - Suckless alternative: hash table with libc? > > tsearch and friends from search.h > Will take a look at those. > > > 5. String utility > > - Suckless alternative: libporty > > What do you want to do? There's string.h.. > If you want regexes there are several libraries for that I used a lot of the join and cat functions from the glib library. Not currently using any regexes. Thanks for the responses, Amit
Re: [dev] dwm: XKeycodeToKeysym deprecated patch
On 16 May 2012 16:06, Kurt H Maier wrote: > On Wed, May 16, 2012 at 03:34:25PM +0300, Ivan Kanakarakis wrote: > > XKeycodeToKeysym returns faulty results in some cases/layouts. > > Thanks, this is the sort of information I was looking for. > > are you an Ubuntu user ? -- *Ivan c00kiemon5ter V Kanakarakis* >:3
Re: [dev] dwm: XKeycodeToKeysym deprecated patch
On Wed, May 16, 2012 at 07:42:07PM +0300, Ivan Kanakarakis wrote: > are you an Ubuntu user ? no, i am an adult.
[dev] [st] [patch] add font selection to command line
Hello, this is small patch to add -f and -F switches to change FONT and BOLDFONT defaults. st-fonts-in-cmdline.diff Description: Binary data
Re: [dev] I messed up...used glib, dbus, and friends. Need help to fix this mistake
Hey, On 16 May 2012 17:23, Amit Uttamchandani wrote: > GIO/gvfs had interfaces to do mounts asynchronously and call a callback > function when it was done. Separate concerns: mount with mount, parallelise with pthreads (or similar). Having to build asynchronicity into each function suggests you're doing something very wrong, in one way or another. > > popen(3), or just fork/dup2/exec. > Is there a way to do these asynchronously? You can't get more asynchronous than a separate running process, can you? > I used a lot of the join and cat functions from the glib library. Not > currently using any regexes. string.h has a number of join and cat functions. Even if it doesn't have exactly what you need, it's trivial to write your own. Trivial enough that the dependency is simply not worth it. cls