Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

The following rule works as expected:

{ rule = { class = "Firefox" },
  properties = { tag = tags[2][2] } },

That is, Firefox instances are started on the second tag of the second screen. However, I have not been able to do the same for jEdit with this rule on the next line:

{ rule = { class = "jedit" },
  properties = { tag = tags[2][3] } },

jEdit instances always pop up on the first tag of the first screen. The window class looks correct:

$ xprop | grep "^WM_CLASS\|^WM_NAME" 
WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "jedit"
WM_NAME(STRING) = "jEdit - Untitled-1"

Except for the capitalization it's very similar to the result for Firefox:

$ xprop | grep "^WM_CLASS\|^WM_NAME" 
WM_CLASS(STRING) = "Navigator", "Firefox"
WM_NAME(STRING) = "How to place jEdit window in Awesome WM? - Unix & Linux Stack Exchange - Mozilla Firefox"

Mocking the WM name doesn't work either - after running the following the window still appears in the wrong place:

sudo pacman --sync wmname
wmname LG3D
jedit &

Java version:

$ java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (ArchLinux build 7.u45_2.4.3-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

What's happening here?

share|improve this question
    
Can you include xprop output for Firefox? –  Bichoy Aug 6 '13 at 0:55
    
Can you also try mocking the window manager name using this: wmname LG3D ... Some Java application doesn't like awesome for some reason. awesome.naquadah.org/wiki/Problems_with_Java –  Bichoy Aug 6 '13 at 0:57
    
So I installed awesome via apt-get on Ubuntu 12.04. My xprop output is slightly different. I copied the class into the config and started jedit. It started on the second tag like it was supposed to, no problems. All I did was copy the Firefox section from the default config, uncomment it, and put the right class in. You could try specifying the instance and the class. Maybe that will help you? –  Sean Perry Dec 12 '13 at 22:14
    
@SeanPerry If it works for you, could you please post the actual configuration as an answer? –  l0b0 Dec 13 '13 at 20:25
    
I did not because it was basically the same as your config except for the different WM_CLASS. That was why I suggested you try both the instance and the class rather than just the class. –  Sean Perry Dec 13 '13 at 21:23
add comment

1 Answer

Works on Ubuntu with 100% packaged components:

-- Set jedit to always map on tags number 2 of screen 1.
{ rule = { class = "org-gjt-sp-jedit-jEdit" },
  properties = { tag = tags[1][2] } },

This also works for me:

-- with instance
{ rule = { class = "org-gjt-sp-jedit-jEdit", instance = "sun-awt-X11-XFramePeer",  },
  properties = { tag = tags[1][2] } },

This is awesome 3.4.11 and jedit 4.4.2+dfsg-1 with java:

$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
OpenJDK Server VM (build 20.0-b12, mixed mode)

xprop output:

WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "org-gjt-sp-jedit-jEdit"
WM_NAME(STRING) = "jEdit - Untitled-1"
share|improve this answer
    
Neither of these worked with my setup. –  l0b0 Dec 15 '13 at 13:37
    
Disappointing. I wonder if the Java distribution has something to do with it. You are probably using the Oracle/Sun distribution and not the open LDK one, right? Just you could try running jEdit with a different JDK just to see if it works. That ought to help track down the bug to the right place. –  Sean Perry Dec 16 '13 at 17:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.