You are not logged in.

#1 2013-10-20 10:10:18

jishnu7
Member
Registered: 2013-04-15
Posts: 12

Awesome window manager: How to keep application always on top

Is it possible to keep media player applications always on top ?

Following is my current configuration.

{ rule = { class = "Vlc" },
   properties = { floating = true, ontop = true } }

This is working fine whenever I start application. But problem is, if I go to full screen and come back, ontop flag is unset.
Is there anyway to fix this ?

Offline

#2 2013-10-20 19:41:54

shmibs
Member
Registered: 2012-09-11
Posts: 93
Website

Re: Awesome window manager: How to keep application always on top

you could probably do something like

client.connect_signal("property::fullscreen", function(c)
   if c.class == "mplayer" then
      c.ontop = true
   end
end)

i haven't tested this, though, so don't be surprised when it fails tongue

Last edited by shmibs (2013-10-20 19:42:16)


[site] | [dotfiles] | あたしたち、人間じゃないの?

Offline

#3 2013-10-21 09:15:12

jishnu7
Member
Registered: 2013-04-15
Posts: 12

Re: Awesome window manager: How to keep application always on top

shmibs wrote:

you could probably do something like

client.connect_signal("property::fullscreen", function(c)
   if c.class == "mplayer" then
      c.ontop = true
   end
end)

i haven't tested this, though, so don't be surprised when it fails tongue

This is working partially. ie, VLC is keeping ontop propery, but video is not going full screen.

Offline

#4 2013-10-21 09:19:07

jishnu7
Member
Registered: 2013-04-15
Posts: 12

Re: Awesome window manager: How to keep application always on top

Connecting to

property::ontop

signal temporarly fix the issue.
But I don't think that is a clean way. because I won't be able to manually unset ontop, if I want.

Offline

Board footer

Powered by FluxBB