You are not logged in.
Hi !
I've been using Arch for a couple months now and I'm currently setting up AwesomeWM on top of MATE. So far everything works fine. I removed the autostart of Caja, Marco and mate-panel with dconf editor and added Awesome to the autostart apps. I customized my rc.lua to my likings but I'm running into an issue now.
Here's the problem : I want all my new windows to be created as slave, except for a subset of apps that sould be master by default (for now just Emacs but more will probably come). The problem is, I can't seem to get it working quite right. Uncommenting "awful.client.setslave(c)" under "if not startup then" does the first of what I want, but having it conditional, using setmaster if the window class is emacs or adding "{ rule = { class = "emacs" }, callback = awful.client.setmaster }" to my rules doesn't work. I can't see what I'm doing wrong here, any advice ?
Thanks in advance.
Last edited by Streetwalker (2013-11-11 20:08:39)
Offline
i don't have emacs installed so can't look myself, but look at it's windows properties with the CLI app. xprop. you'll probably find two strings for 'class:' "emacs" and "Emacs". i found that awesome doesn't like to use the first one, i.e., recognizes rules only if i use the second, usually upper-case one. [edit: in your case, probably "Emacs".]
Last edited by phanisvara (2013-11-11 19:54:32)
Offline
Yeah, I already used xprop to get the class but I wasn't aware that it preferred the one with the first letter capitalized. I'm trying this asap and reporting back. Thank you for helping anyway. ![]()
Offline
yeah, found that strange, too -- not strange enough to investigate though.
and sorry for the unnecessary edit above; i don't think you are stupid, but rather i am, tonight, for different reasons. thought i hadn't quoted those two strings already and wanted to make sure : /
Offline
Lol, no problem. Apprently it works by setting slave windows conditionally using that "second" class.
The rule I wrote is probably broken anyway since that didn't work but meh. I'm happy now.
So thank you very much.
Edit : Oh, no rating system on this forum, sadly.
Last edited by Streetwalker (2013-11-11 20:09:17)
Offline