You are not logged in.

#1 2014-10-22 20:39:29

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,489

Some devilspie2 scripts for pipelight and gnome-terminal

I wanted to have amazone prime videos playing in extra window, maximized and focused. I found several examples for devilspie, but none for devilspie2.

To Do:
Run Silverlight in extra window
echo embed = false >> /usr/share/pipelight/configs/pipelight-silverlight5.1

Have Devilspie2 detecting if this extra windows is starting up, maximize it, give focus (and some transparency - just for debugging, to see stdout in the background).

Here is the script, use it as you like: ~/.config/devilspie2/pipelight-firefox.lua

if (get_window_name() == "Plugin") 
	and	(get_application_name() == "Plugin")
	and	(get_window_class() == "pluginloader.exe")	
then
	set_window_fullscreen(true)
	focus()
	set_window_opacity(0.85)
end

If you want to have gnome-terminal transparency, you may like this: ~/.config/devilspie2/transparency.lua

if (get_application_name() == "Terminal") then
    set_window_opacity(0.85)
--   set_window_size(1000, 650)
--   center()
end

Last edited by Moo-Crumpus (2014-10-22 20:41:15)


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

Board footer

Powered by FluxBB