You are not logged in.
Hi there,
Right so I'm using Awesome WM and want to auto start programs into specific tags.
This is the code I have, and everything is working as expected:
-- {{{
--Autostart Programs
awful.util.spawn_with_shell("chromium")
awful.util.spawn_with_shell("skype")
awful.util.spawn_with_shell("spotify")
...
-- }}}
-- {{{ Rules
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 = "Chromium" },
properties = { tag = tags[1][6] } },
{ rule = { class = "Skype" },
properties = { tag = [1][3]} },
{ rule = { class = "Spotify" },
properties = { tag = [1][4] } },
...
-- }}}
So what I'm wondering is how do I find out what the class of programs for this section: "{ rule = { class = " " },"?
I installed Arch on my chromebook and I've been using a lot of the programs such as Evernote and Trello. I have the chrome app drawer (http://www.omgchrome.com/enable-chrome- … her-linux/).
I created a shortcut and can auto launch programs such as evernote using the chrome app drawer using the command we can see from the desktop entry:
awful.util.spawn_with_shell("/usr/bin/chromium --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol")
However, the issue is that it always opens on whatever tab I'm using. I cannot find the class to add to the rules.
None of these work:
{ rule = { class = "chrome-lbfehkoinhhcknnbdgnnmjhiladcgbol-Default.desktop" },
properties = { tag = tags[1][6] } },
{ rule = { class = "Evernote Web" },
properties = { tag = tags[1][6] } },
{ rule = { class = "/usr/bin/chromium --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol" },
properties = { tag = tags[1][6] } },
Any suggestions on what I can do to find the "class"?
Last edited by Gwynplaine (2014-11-14 00:24:01)
Offline
run 'xprop' in a terminal and your cursor will change to a cross. Click anywhere on the app you want to identify and the class will be sent to the screen (along with a ton of other stuff)
It's in the xorg-xprop pkg
Last edited by oliver (2014-11-14 00:16:08)
Offline
That really helped, thank you.
Offline