You are not logged in.

#1 2009-02-19 09:03:05

allbluedream
Member
Registered: 2008-04-06
Posts: 155

VLC auto float in Awesome WM

How to start VLC in float mode?
I experimented with rc.lua, but haven't found the correct name for VLC yet... Please help.

xprop

XKLAVIER_STATE(INTEGER) = 0, 0
WM_STATE(WM_STATE):
        window state: Normal
        icon window: 0x0
_AWESOME_TAGS(STRING) = "100000000"
WM_COMMAND(STRING) = { "" }
_NET_WM_ICON(CARDINAL) = 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4290929154, 4290929154, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4290929154, 4294343170, 4294870530, 4290929154, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4292767234, 4294343170, 4294345218, 4292766210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4293554690, 4294078978, 4294606338, 4293815810, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4293554690, 4293567070, 4293567070, 4293567070, 4293567070, 4293554690, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4290429638, 4293323502, 4292009698, 4293323502, 4291483358, 4291481298, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4292533982, 4292008666, 4293323498, 4292008666, 4293060326, 4290166466, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4292270810, 4291481298, 4293323498, 4292007642, 4293323498, 4291744470, 4293323498, 4291481298, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4292533982, 4293060326, 4292008666, 4293323498, 4292008666, 4293060326, 4292533982, 4293060326, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4292533982, 4291745494, 4293323498, 4292009698, 4293323502, 4291745502, 4292796130, 4291745494, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4291978758, 4293036586, 4293301830, 4293302866, 4293567058, 4293566022, 4293297702, 4291712514, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4290662914, 4292503042, 4293555714, 4294077954, 4294077954, 4294343170, 4294345218, 4294081026, 4292237826, 4290662914, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4290662914, 4292766210, 4293556738, 4293815810, 4294078978, 4294343170, 4294345218, 4294082050, 4292502018, 4290662914, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4291189250, 4292766210, 4293555714, 4293815810, 4294078978, 4294343170, 4294345218, 4294082050, 4292765186, 4291189250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4291713538, 4291713538, 4292767234, 4293555714, 4293815810, 4294078978, 4294081026, 4294083074, 4294083074, 4293028354, 4291713538, 4291713538, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4291979798, 4291979798, 4293028354, 4293815810, 4293813762, 4294077954, 4294080002, 4294343170, 4294343170, 4293290498, 4291979798, 4291979798, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4289375918, 4292532954, 4291736210, 4292518510, 4292776530, 4293300810, 4293301830, 4293041746, 4292519530, 4291472018, 4290164406, 4291481298, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4289375918, 4292007638, 4290692810, 4292798182, 4291483358, 4292798186, 4291745502, 4293060330, 4291483358, 4292798182, 4290693838, 4292270810, 4289375918, 4290428610, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4291218122, 4290165438, 4292533982, 4291481294, 4293060326, 4291482322, 4293060326, 4291744466, 4293060326, 4291481294, 4292533982, 4290428606, 4291744466, 4288323234, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4288850610, 4292270810, 4290954950, 4292797154, 4291481298, 4292797154, 4291744466, 4293060326, 4291481298, 4292797154, 4290954950, 4292270810, 4289639094, 4291218126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4289347078, 4289629814, 4290429638, 4292533986, 4291481298, 4292797154, 4291481298, 4293060326, 4291744466, 4292797154, 4291218126, 4292533982, 4290429638, 4292007642, 4288313958, 4288297486, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4291975682, 4289083906, 4290924034, 4291197502, 4291474078, 4292795098, 4291481294, 4292797154, 4291482330, 4292797158, 4291482326, 4292533982, 4291216058, 4292528830, 4290671162, 4290135554, 4288295426, 4290134530, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4293817858, 4291187202, 4289083906, 4291187202, 4291974658, 4292764162, 4293030414, 4292770342, 4292772410, 4292775494, 4292775494, 4293037626, 4293297702, 4293556750, 4293290498, 4291973634, 4290660866, 4288558594, 4290135554, 4292236802, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4294082050, 4293818882, 4292502018, 4290134530, 4291187202, 4292238850, 4292765186, 4293028354, 4293287426, 4293287426, 4293813762, 4293813762, 4293815810, 4294078978, 4293816834, 4293290498, 4292237826, 4290660866, 4289609218, 4292238850, 4293291522, 4294082050, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4294611458, 4294346242, 4294083074, 4294083074, 4293027330, 4291711490, 4291974658, 4292502018, 4293027330, 4293026306, 4293288450, 4293551618, 4293552642, 4293815810, 4293815810, 4293553666, 4293289474, 4292499970, 4291973634, 4293028354, 4294346242, 4294347266, 4294611458, 4294611458, 0, 0, 0, 0, 0, 0, 0, 4294616578, 4294616578, 4294611458, 4294348290, 4294348290, 4294346242, 4294343170, 4293815810, 4293288450, 4293288450, 4293287426, 4293288450, 4293288450, 4293551618, 4293552642, 4293815810, 4293816834, 4294080002, 4294082050, 4294345218, 4294609410, 4294611458, 4294611458, 4294613506, 4294616578, 4294616586, 0, 0, 0, 0, 0, 0, 4294886986, 4294886986, 4294885962, 4294885962, 4294886986, 4294886986, 4294886986, 4294885962, 4294884938, 4294884938, 4294884938, 4294884938, 4294884938, 4294884938, 4294884938, 4294884938, 4294884938, 4294885962, 4294885962, 4294888010, 4294888010, 4294888010, 4294888010, 4294888010, 4294888010, 4294888010, 0, 0, 0, 0, 0, 0, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 4291189250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0xb2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x56, 0xb2, 0x10, 0x0, 0x0, 0x0
_NET_WM_NAME(UTF8_STRING) = 0x56, 0x4c, 0x43, 0x20, 0xe3, 0x83, 0xa1, 0xe3, 0x83, 0x87, 0xe3, 0x82, 0xa3, 0xe3, 0x82, 0xa2, 0xe3, 0x83, 0x97, 0xe3, 0x83, 0xac, 0xe3, 0x82, 0xa4, 0xe3, 0x83, 0xa4, 0xe3, 0x83, 0xbc
WM_CLIENT_LEADER(WINDOW): window id # 0x2c00006
_NET_WM_PID(CARDINAL) = 28813
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x1, 0x7e, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING
WM_NAME(COMPOUND_TEXT) = "VLC メディアプレイヤー"
WM_LOCALE_NAME(STRING) = "ja_JP.UTF-8"
WM_CLASS(STRING) = "", ""
WM_HINTS(WM_HINTS):
        Client accepts input or input focus: True
        Initial state is Normal State.
        bitmap id # to use for icon: 0x2c0000b
        bitmap id # of mask for icon: 0x2c0000d
        window id # of group leader: 0x2c00006
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        user specified location: 1, 22
        program specified location: 1, 22
        user specified size: 581 by 88
        program specified size: 581 by 88
        program specified minimum size: 581 by 110
        window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "arch"

aut

Last edited by allbluedream (2009-02-22 13:45:36)

Offline

#2 2009-02-22 06:48:12

cwjiof
Member
From: Taichung, TW
Registered: 2008-01-27
Posts: 131

Re: VLC auto float in Awesome WM

Same problem with me.

And I can't get any output when pressing the Mod4 + Ctrl + i. Maybe there is something output, but I don't know where is it. sad

Offline

#3 2009-02-22 07:34:52

rkowalick
Member
Registered: 2009-02-22
Posts: 5

Re: VLC auto float in Awesome WM

The mod4 key is not, by default, set for the super key. There are a couple of steps you need to take to make sure super, ie the windows key, is set to mod4. Here is what my (part) of my xmodmaprc looks like:

.....
keycode 0x73 = Super_L
keycode 0x74 = Super_R
add Mod4 = Super_L
add Mod4 = Super_R

The 2 keycode lines make the windows keys on my keyboard super_l and r.
The add mod4 lines make the super keys the mod4 key.
Your awesome shortcuts should run fine if you put this code in a text file called .xmodmaprc and put this in your xinit file before you "exec" a window manager:

xmodmap ~/.xmodmaprc

This should make the windows keys mod4 and everything should work nicely.

Offline

#4 2009-02-22 10:02:11

canen
Member
From: Jamaica
Registered: 2008-11-28
Posts: 35

Re: VLC auto float in Awesome WM

As far as I know there is no way to do it since VLC does not comply to the standards that return the Class and Instance information.

Offline

#5 2009-02-22 11:52:08

allbluedream
Member
Registered: 2008-04-06
Posts: 155

Re: VLC auto float in Awesome WM

canen, thanks for the info!

Offline

#6 2009-02-22 12:25:45

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: VLC auto float in Awesome WM

You can match it by WM_NAME, default awesome configuration (sample) matches only by class and instance but awesome keeps track of other properties too, you only need to add another check (for c.name) to match windows by name (in your manage hook).

Or you can go about it a little differently and search for the name or only part of it. You can take a look at how I do application rules (all in one table, and important is the code in the manage hook ofcourse), the general idea was discussed on the mailing list a few days ago and I really liked it so I implemented it too: http://sysphere.org/~anrxc/local/scr/do … c.lua.html


You need to install an RTFM interface.

Offline

#7 2009-02-22 13:45:02

allbluedream
Member
Registered: 2008-04-06
Posts: 155

Re: VLC auto float in Awesome WM

Does your config also work for awesome v3.1.2?

Offline

#8 2009-03-24 23:35:42

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: VLC auto float in Awesome WM

I just wanted to report that vlc-git starts one window now (finally not two) with instance "Qt-subapplication" . So adding

["Qt-subapplication"] = true,

to your float instances/classes actually works .

Last edited by Nezmer (2009-03-24 23:37:25)


English is not my native language .

Offline

Board footer

Powered by FluxBB