Keyboard Layout switching with alt-shift.

Filed under: history repeating, logging — jj at 5:37 pm on Sunday, May 25, 2008

Can be set using setxkbmap – no need to restart X.

setxkbmap -rules xfree86 -layout “us,ch” -option “grp:alt_shift_toggle”

wenn viel memory da ist

Filed under: history repeating — jj at 1:22 pm on Monday, May 12, 2008

502 sysctl -q vm.swappiness
503 man sysctl
504 sysctl -A
505 sysctl vm.swappiness=10
506 sysctl -q vm.swappiness

Run Gimp-2.4 and Gimp-2.5 on the same System

Filed under: logging — jj at 11:20 pm on Thursday, May 8, 2008

On Gentoo you shouldn’t have any problems installing the newest beta of the fantastic new Gimp*.

On Gutsy it seems a bit tricky compiling 2.5, don’t know, I dist-upgraded just before. On Hardy I just needed to install GEGL and BABL from source, I put it into /usr/local, which was default anyway. Porbably you need some more packages on your installation but if anything, it should be in apt. Might be some apt-get install this-dev or that-dev…

Once you have BABL and GEGL Gimp-2.5 builds fine. ./configure && make && sudo make install and it should be in /usr/local while the old stable Gimp is still in /usr. If you than try starting the new one you get an error about libgimp not matching your Gimp version. Of course you need to set the library path accordingly. And the environment variable for doing so is LD_LIBRARY_PATH.

I made two tiny scripts to start one or the other Gimp:

#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib; /usr/bin/gimp

And:
#!/bin/bash
export LD_LIBRARY_PATH=/usr/local/lib; /usr/local/bin/gimp-2.5

Of course that also works just like that on the command line. Also, if you use gqview, you can put this in your ‘external editor preferneces’:

LD_LIBRARY_PATH=/usr/local/lib; /usr/local/bin/gimp-remote-2.5 %f

* Finally more than 8 bit colour depth, thanks to GEGL. And: GEGL seems very promising as a concept. As for the User-Interface: I already liked the last Gimp UIs far better than Photoshop although I spend more hours on Photoshop than on Gimp. I think people whining about Gimps UI are just whiners.