GIMP in 1 window - HOWTO

Share your own howto's etc. Not for support questions!

GIMP in 1 window - HOWTO

Postby canci » 2007-04-18 08:23

.

You want the GIMP windows "deweirdified" like in GIMPshop
(meaning in one window like Krita or Photoshop) but don't really feel like
installing it? Well, here is something that might be a more conveniant
sollution.


UPDATE: There is now a much easier way to do this with Python. It is called Gimpbox.

Should work on the 2.6.x series. Not sure if it works on older ones. Here is where I've found out about it.


A. New Approach With Python

Turns Gimp

Image

into Gimpbox

Image


WARNING: This sadly does not work in KDE (not sure if it is an issue with KWin, as no messages are put out on the console).


1. Dependencies

Code: Select all
sudo apt-get install python-wnck


2. Get the script

Code: Select all
wget http://gimpbox.googlecode.com/hg/gimpbox.py


3. Installation

Code: Select all
chmod +x gimpbox.py && sudo mv gimpbox.py /usr/local/bin/gimpbox


If you'd like your default Gimp shortcut located in the menus to open gimpbox instead of vanilla gimp, open this file in an editor:

Code: Select all
sudo nano /usr/share/applications/gimp.desktop


and change the lines

Code: Select all
Exec=gimp-2.6 %U
TryExec=gimp-2.6


to

Code: Select all
Exec=gimpbox %U
TryExec=gimpbox


You can run it either by issuing the command gimpbox or opening Gimp from a menu if you changed the .desktop file.



B. Old Approach With Xnest

!DISCLAIMER!: This idea is not really mine, I took it from a book about Ubuntu which is in German and free of charge. Their example was only for XFCE though and I added the way to go for Fluxbox since I use it. Check out the book if you like. I also haven't tested this approach in a while and cannot comment if it still works.


1. So, fire up your favourite editor and type in the following code:

Code: Select all
#!/bin/sh
Xnest :1 -ac -name GIMP -geometry 1014x690 &
fluxbox -display :1 & wmpid=$!
gimp --display :1 &
wait $wmpid


Here is the example with Xfce:

Code: Select all
#!/bin/sh
Xnest :1 -ac -name GIMP -geometry 1014x690 &
xfwm4 --display :1 & wmpid=$!
gimp --display :1 &
wait $wmpid


Of course, any other window manager goes. The only problem you might
encounter is that the flag -display might be --display for your window
manager. Check man your-window-manager for options!
Also, be sure to adjust the -geometry flag the way you like it.

2. Save it under /usr/bin/ or /usr/local/bin/, whatever you
like more and give it execution permissions. Eg.:

Code: Select all
sudo chmod +x /usr/local/bin/gimp-deweird


(or whatever you called your script)

So, what did the scirpt do? It started another xserver with Xnest and just
loaded the window manager and GIMP. Of course, if you use entire
desktop environments, it makes little sense to start eg. Gnome or KDE
entirely, since you will end up with a window containing another desktop,
icons etc. To prevent this, start only metacity or kwin.

If you encounter drawing errors (eg. black stains when moving toolbars)
consider adding this to your xorg.conf or XFree.conf:

Code: Select all
Option "BackingStore"
Last edited by canci on 2011-01-16 17:45, edited 5 times in total.
I ken hez kinvulf beck? I ken hez riesnible modereyshn? Kthnxbai!

No need to discuss this topic? Offended by this signature? Remove it:

Mez wrote:You can easily just disable viewing signatures

Click here - and set "Display Signatures" to No
User avatar
canci
 
Posts: 1705
Joined: 2006-09-24 11:28
Location: Bosnia & Herzegovina

Postby thamarok » 2007-04-18 08:24

Cool, but I prefer Krita :P
thamarok
 

Postby canci » 2007-04-18 08:26

thamarok wrote:Cool, but I prefer Krita :P

Wow, ppl are reading this! At least half way through... :(
I ken hez kinvulf beck? I ken hez riesnible modereyshn? Kthnxbai!

No need to discuss this topic? Offended by this signature? Remove it:

Mez wrote:You can easily just disable viewing signatures

Click here - and set "Display Signatures" to No
User avatar
canci
 
Posts: 1705
Joined: 2006-09-24 11:28
Location: Bosnia & Herzegovina

Postby thamarok » 2007-04-18 08:27

canci wrote:
thamarok wrote:Cool, but I prefer Krita :P

Wow, ppl are reading this! At least half way through... :(
No, I did try it and it worked fine, only problem was a redraw error when moving the tools.
thamarok
 

Postby canci » 2007-04-18 08:35

I was just kidding...

Redraw error? You mean black stains and the like?
Try putting this into your xorg.conf or XFree.conf:

Option "BackingStore"

PLS tell me if it worked!
I ken hez kinvulf beck? I ken hez riesnible modereyshn? Kthnxbai!

No need to discuss this topic? Offended by this signature? Remove it:

Mez wrote:You can easily just disable viewing signatures

Click here - and set "Display Signatures" to No
User avatar
canci
 
Posts: 1705
Joined: 2006-09-24 11:28
Location: Bosnia & Herzegovina

Postby DeanLinkous » 2007-04-18 12:41

Cool ingenius idea! Personally I like having a large tool window and large layer window while still having a large image window but that is a neat idea!
User avatar
DeanLinkous
 
Posts: 1611
Joined: 2006-06-04 15:28

Postby canci » 2007-04-18 13:56

:oops:
I ken hez kinvulf beck? I ken hez riesnible modereyshn? Kthnxbai!

No need to discuss this topic? Offended by this signature? Remove it:

Mez wrote:You can easily just disable viewing signatures

Click here - and set "Display Signatures" to No
User avatar
canci
 
Posts: 1705
Joined: 2006-09-24 11:28
Location: Bosnia & Herzegovina

Postby thamarok » 2007-04-18 17:04

canci, your fix solves the redraw problem, thanks!
But I have never ever ever liked GIMP.. it's just too complex to make your own gradients with it, but in Pixel or Adobe Photoshop it is so easy..

There is no FOSS which could beat Adobe Photoshop :)
PS: I don't care if it's non-free!
thamarok
 

Postby DeanLinkous » 2007-04-18 18:43

BUt it use to be even harder. It gets better by people using it and suggesting improvements. So you can have a say about it and actually make it better. Can you say the same about those other programs?

And to create a basic gradient is about three clicks anyway. There are also plenty of gradients available IMO and I rarely ever make my own. And editing current gradients is very similar to PSP at least (not familar with PS or Pixel) but it is a series of little arrow sliders.

"beat" is a pretty generic term. I use to think that the gimp sucked but once I actually bothered to learn to use it instead of just expecting it to be a clone then I realized I love it....
User avatar
DeanLinkous
 
Posts: 1611
Joined: 2006-06-04 15:28

Postby TonyT » 2007-04-18 23:05

Since there seems to be some gimp users here, I have a gimp question:
In photoshop or paint shop pro windows you can use the mouse wheel to zoom in & out of the image window. How do you config gimp to do this?
TonyT
 
Posts: 574
Joined: 2006-09-04 11:57

Postby DeanLinkous » 2007-04-18 23:36

file>preferences>input devices>input controllers

set actions for scroll up and scroll down events
User avatar
DeanLinkous
 
Posts: 1611
Joined: 2006-06-04 15:28

Postby TonyT » 2007-04-19 01:24

DeanLinkous wrote:file>preferences>input devices>input controllers

set actions for scroll up and scroll down events

Fantastic! Thanks much.
tt
TonyT
 
Posts: 574
Joined: 2006-09-04 11:57

Postby DeanLinkous » 2007-04-19 01:44

welcome much mo...
User avatar
DeanLinkous
 
Posts: 1611
Joined: 2006-06-04 15:28

Postby thamarok » 2007-04-19 14:22

DeanLinkous wrote:BUt it use to be even harder. It gets better by people using it and suggesting improvements. So you can have a say about it and actually make it better. Can you say the same about those other programs?
I don't care if GIMP is open-source and that some people work on it, I just hate its concept and it is hard to use for quick'n'cool gradient creation. There is nothing more to it. Think of me as a big non-free lover, you wouldn't say the same sentence.
thamarok
 

Postby DeanLinkous » 2007-04-19 18:39

you hate
its hard
it sucks
something beats it

I understand now.
User avatar
DeanLinkous
 
Posts: 1611
Joined: 2006-06-04 15:28

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable