Warning: session_start(): open(/tmp/sess_3djrt3l5tncgkarn4h38mqg806, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
GameMode openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans  . 

GameMode

   0.2  

KWin Scripts

Score 56%
Downloads:  232
Submitted:  Jan 29 2013
Updated:  Feb 22 2015

Description:

Simple scriplet which makes a definable list of windows block the compositor when they move into fullscreen mode (predefined are videoplayer, but it can be extended with games, sw. like celestia or stellarium ;-)

The script does not have a config GUI - i\'m not even sure that\'s supported atm. but after installation you can edit the list in ~/.kde/share/apps/kwin/scripts/gamemode/contents/code/main.js

(afaik atm. you\'ll have to restart \"kwin --replace &\" to effectively update the script)




Changelog:

- listen to all added clients, check whether they're fullscreen and apply (kodi case)
- add "kodi" to list




LicenseGPL
(GameMode)
Send to a friend
Subscribe
Other  Content  from thomas12777
Report inappropriate content



-

 XBMC

 
 by bootkiller on: Mar 25 2013
 
Score 50%

Does anyone have any idea on how to make this work with XBMC?


Reply to this

-

 Re: XBMC

 
 by thomas12777 on: Mar 26 2013
 
Score 50%

run xbmc and konsole. in konsole run "xprop | grep CLASS" and click xbmc.

Add the *second* value to GAMES array in ~/.kde/share/apps/kwin/scripts/gamemode/contents/code/main.js

restart kwin ("kwin --replace &" - you could also reload the script but i don't know how out of my mind ;-)


Reply to this

-

 Re: Re: XBMC

 
 by bootkiller on: Mar 27 2013
 
Score 50%

It reports as xbmc.bin, I tried it but doesn't work...


Reply to this

-

 Re: Re: Re: XBMC

 
 by thomas12777 on: Mar 27 2013
 
Score 50%

var runTheShow = function(client, isFullscreen) {
+ print(client.resourceClass.toString());
if (runsTheShow(client)) {
client.blocksCompositing = isFullscreen;
}
};

run "kdebugdialog" and enable 1212 (KWin), then "kwin --replace &" from konsole.

Run XBMC, make it enter FS state.

Whatever is printed out then is the term you want to match.

Please share your findings so i can add it for an updated version of the script ;-)


Reply to this

-

 Re: Re: Re: Re: XBMC

 
 by bootkiller on: Mar 27 2013
 
Score 50%

Still not working, the output is:

kwin(18932) KWin::Client::configureRequest: PERMITTED 'ID: 29360142 ;WMCLASS: "xbmc.bin" : "xbmc.bin" ;Caption: "XBMC Media Center" ' true

I tried adding "XBMC Media Center" to the array, but no luck.


Reply to this

-

 Re: Re: Re: Re: Re: XBMC

 
 by thomas12777 on: Mar 27 2013
 
Score 50%

That output is unrelated.

The window does not seem to enter the fullscreen mode at all (at least the script doesn't print anything in return of the line you hopefully added befre restarting kwin to get this ;-)

If you don't use it w/ an w/o fullscreen mode, just add a window rule to apply always.


Reply to this

-

 Re: Re: Re: Re: Re: XBMC

 
 by thomas12777 on: Mar 28 2013
 
Score 50%

Just a random thought - the script is enabled, is it?
(run "kcmshell4 kwinscripts")


Reply to this

-

 Re: Re: Re: Re: Re: Re: XBMC

 
 by bootkiller on: Mar 28 2013
 
Score 50%

Yes and it is working perfectly with games, hl_linux and hl2_linux work like a charm for Valve games.



-

 Re: Re: Re: Re: Re: XBMC

 
 by thomas12777 on: Mar 28 2013
 
Score 50%

Sounds like XBMC doesn't support _NET_WM_STATE_FULLSCREEN?

Try:
kwriteconfig --file kwinrc --group Windows --key LegacyFullscreenSupport true
kwin --replace &

This will detect "screensize borderelss window is fullscreen"
Be aware that this will eg. break the plasma-netbook shell


Reply to this

-

 Re: Re: Re: Re: Re: Re: XBMC

 
 by bootkiller on: Mar 28 2013
 
Score 50%

I blocked composition for it until a better solution comes around.



-
.

 Nice

 
 by melongex on: Sep 26 2014
 
Score 50%

Nice work, this should come with KDE I think now with steam getting more popular in linux.

A preference dialog would be nice though ;)


Reply to this

-

 where is the script?

 
 by shawnpeterson77 on: Oct 26 2015
 
Score 50%

I did a full restart, and there is still no file under /home/.kde/share/apps/kwin/scripts. What am I missing? THanks


Reply to this

-

 Re: where is the script?

 
 by thomas12777 on: Oct 26 2015
 
Score 50%

~/.kde4/share/apps/kwin/scripts
or
~/.kde/share/apps/kwin/scripts

on KDE5, ~/.local/share/kwin/scripts

Your $HOME dir is very most likely not /home


Reply to this

-

 Re: Re: where is the script?

 
 by shawnpeterson77 on: Oct 26 2015
 
Score 50%

Okay, what you said is of course what I looked for. I was just not wanting to use my name. In any case, it isn't there.


Reply to this

-

 Re: Re: Re: where is the script?

 
 by thomas12777 on: Oct 26 2015
 
Score 50%

How did you install it?
In doubt, download the tarball and run

plasmapkg[2] -i -t kwinscript file.kwinscript


Reply to this

-

 Re: Re: Re: Re: where is the script?

 
 by shawnpeterson77 on: Oct 26 2015
 
Score 50%

Okay, thanks. I originally tried to install via the hot new stuff button (plasma 5.2). It said installed, but apparently not really, lol. I did what you suggested and downloaded the tarbill. Thanks for the help!


Reply to this

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team