You are not logged in.

#1 2010-04-08 07:28:56

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

[SOLVED] AWESOME WM and windows layout problem

hi all, this is a newbie question, but i cannot find any solution to my problem. sometimes i'd like some application to open in a floating layout mode... in the screenshot you can see what happens to my application: arduino's app doesn't start in a fullscreen mode, so i have the graphic error you see... i'd like it to open in it's real dimension, and not with all that gray filling the window..

201004080857461366x768s.th.png

how can i do that?
thanks for your help!

Last edited by samuele.mattiuzzo (2010-04-08 17:44:20)

Offline

#2 2010-04-08 11:13:29

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED] AWESOME WM and windows layout problem

You need to find the window name or window class of the app you want to manage. Start the app, start a terminal, enter

xprop

in the terminal, the cursor will turn to a crosshairs, use that to click on the window you want to manage, then some text will appear in the terminal including something like:

WM_CLASS(STRING) = "urxvt", "URxvt"

That means that I clicked on a window whose name was "urxvt" and whose class was "URxvt".

Then at the bottom of your ~/.config/awesome/rc.lua, you should see a block like:

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] } },
}

You want to add a new entry at the end, like this:

    { rule = { class = "URxvt" },
      properties = { floating = true } },

Or like this:

    { rule = { instance = "urxvt" },
      properties = { floating = true } },

That sets urxvt windows to always open floating. You want to replace the urxvt references with whatever you got from xprop. Also, you want to the windows to start up fullscreen, not floating. I don't know from memory what the property is for that, you'll have to check the Awesome Lua API or search around or experiment.

Once you've edited and saved your rc.lua, you can try typing "awesome --check" in a terminal to see whether you made any syntax errors. If all is good, you can restart awesome.

Offline

#3 2010-04-08 17:43:51

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: [SOLVED] AWESOME WM and windows layout problem

thanks, it worked smile

Offline

#4 2010-04-08 17:51:56

aqamar
Member
Registered: 2008-09-01
Posts: 49

Re: [SOLVED] AWESOME WM and windows layout problem

can you share your theme.lua and your rc.lua?

Offline

#5 2010-04-08 22:47:33

samuele.mattiuzzo
Member
From: Treviso, IT
Registered: 2009-10-12
Posts: 307
Website

Re: [SOLVED] AWESOME WM and windows layout problem

it's in the april 2010 screenshot smile
anyway the theme is zenburn with modified colors (and modified icons)

Offline

Board footer

Powered by FluxBB