Gimp Windows and Toolboxes

I use the Awesome window manager (AwesomeWM) and getting Gimp to play nicely with it took a little effort.

I'm writing down the settings I have so the next time I need to reconfigure it, I'll be ready!

.config/awesome/rc.lua

awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
      properties = { border_width = beautiful.border_width,
                     border_color = beautiful.border_normal,
                     focus = true,
                     keys = clientkeys,
                     buttons = clientbuttons } },
    { rule = { class = "MPlayer" },
      properties = { floating = true } },
    { rule = { class = "pinentry" },
      properties = { floating = true } },
    { rule = { class = "Gimp" },
      properties = { floating = true } },
    -- Set Firefox to always map on tags number 2 of screen 1.
    -- { rule = { class = "Firefox" },
    --   properties = { tag = tags[1][2] } },
}

client.add_signal("manage", function (c, startup)
    -- Add a titlebar
    -- awful.titlebar.add(c, { modkey = modkey })
    -- Add a titlebar                               
    if awful.rules.match( c, { class = "Gimp" } ) then
        awful.titlebar.add(c, { modkey = modkey })
    end
    -- more stuff not related to Gimp here... 
end)

Gimp Window Management Preferences

At first I thought it was an awesomewm rc.lua issue, but I found that the Gimp made it easy for me to customize how toolbox windows behave when I selected Edit -> Preferences, then chose Window Management from the options on the left:

gimp window management

Gimp Toolbox and Dock Positions

For the life of me I can't get the toolbox and dock positions to persist. Oh well, a task for another day.

By Albert on August 21, 2010 11:11 PM

Categories