You are not logged in.
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..
how can i do that?
thanks for your help!
Last edited by samuele.mattiuzzo (2010-04-08 17:44:20)
Offline
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
Offline
can you share your theme.lua and your rc.lua?
Offline
it's in the april 2010 screenshot
anyway the theme is zenburn with modified colors (and modified icons)
Offline