Skip to content

Considering switching to Awesome. Is this possible?

I have been using a stand alone openbox for over a year now, but i recently heard about awesome and want to give it a try. Right out of the box it is working pretty well, but I do have a question about functionality.

Is it possible to change how the windows are split on awesome? In my case, i am on a little netbook, so I don't have a lot of window space. What i want is something along the lines of have one 'desktop' set up so that gvim will open on 2/3 of the monitor (vertically), and the rest of the open applications (probably terminals) will open on the remaining 1/3 section of the screen.

I am looking through a lot of documentation right now, so forgive me for asking this question if it has a really obvious solution. Mainly i am just wondering if this is possible to do, becuase if it isn't i think i will just stick with openbox. If this is possible and someone has a link to a sample config or whatever that would be even awesomer :P

Thanks

11 points15 comments
Open on Reddit
About this post
Posted
Archived
Score
11 · 100% up
Kind
Text
ID
fa66p

Author

2
posts
25
comments
0
media
View profile

16 comments

This can definitely be done. Check out the documentation here under the section titled "Layout Modification". There may already be a layout which does what you want, I don't recall off the top of my head. I used a similar layout (left 2/3 was web browser, right 1/3 was two terminals) back when I had awesome installed. I was a newbie back then so the layout likely already existed ;)

7 points

If you want precise control over how the screen is split up you may want to check out a manual tiling window manager as opposed to awesome (which is dynamic). Stumpwm is my personal favorite but some others are wmii, musca, subtle etc.

There is nothing wrong with awesome there are just different approaches to handling window layout.

3 points

This is also very easily doable in xmonad, there are default keyboard shortcuts for expanding and shrinking the divide as you describe.

3 points

You could probably set up some rules to do this, but if you learn the keyboard shortcuts you could do it pretty quick as well. You'd really just need to look up the resize and possibly the swap shortcuts

2 points

resize is win+rightclick+drag, swap is win+shift+J

1 points

you can also resize with win+h or win+j and switch between active clients win+j and win+k for mouseless operation

1 points

You're in luck; things like this are the reason the project exists.

Awesome's config file is, as you've most likely noticed, in Lua. Anything you can do with Lua you can do with Awesome.

I've never had to do something like this myself, but someone in their irc channel probably has.

2 points

I did it, and it was relatively painless. To change the window split, try using Windows + Space for the different arrangements. My suggestion is to look up the list of control commands that can be issued with a keyboard and start using them; you can accomplish almost anything you want between them.

1 points

Manually, it is super simple: (once you get a hang of the keyboard shortcuts) meta+space a couple times to get it to vertically split the windows, then meta+h and meta+l (that's a lower-case L) to resize the two halves.

if the windows are in the wrong order, you can meta+j and meta+k to cycle between them, then meta+shift+j and meta+shift+k to re-arrange them.

If you want it to do that automatically, you'll have to edit the config.

either way, I HIGHLY recommend learning the keyboard shortcuts. Honestly, you should never have to touch your mouse. ever.

a full list of the keyboard shortcuts can be found in the manpages http://awesome.naquadah.org/doc/manpages/awesome.1.html

if you prefer to do it with the mouse, meta+left-click-drag to re-arrange windows, meta+right-click-drag to resize them

1 points

Perhaps you could try tritium wm, which is tabbed and tiling, and written in python. It easily allows you to make that kind of configuration on a workspace. wmii is another option that would make this doable. Personally, I have not used awesome, but I understand it's similar to xmonad and dwm?

1 points
unknown author3 hidden

Deleted before we saved it.

0 points

No it was right when they bumped to awesome 3, but it has been like 9 months since I installed awesome from git, upgrading it weekly haven't got any problems

3 points

Same experience here. I've done plenty of updates since awesome 3 and not once have I had to rework my config file. They must have gotten it right finally.

2 points
unknown author

Oh yes. There's this giant lua config file and you can really make it do just about anything you want.

0 points
unknown author

Deleted before we saved it.

-4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.