Mac OS X - Shortcut for different display modes

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
teemue Offline
Junior Member
Posts: 16
Joined: Jul 2013
Reputation: 0
Question  Shortcut for different display modes
Post: #1
Is it possible to create a shortcut for XBMC to start it in different display mode than it's supposed to normally use? I'm asking this because I have XBMC running fullscreen on my second monitor but configuration could be done easier in primary monitor with windowed mode. The only option I know is to manually switch display modes through XBMC settings and i'm too lazy to do it every time. Perhaps someone has guts to do some kind of script? Big Grin
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,909
Joined: Jan 2011
Reputation: 247
Location: Arizona, USA
Post: #2
In the back of my head I want to say that this is now possible in XBMC v13, but I can't remember for sure, or what the command would look like. I will ask around.

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
find quote
teemue Offline
Junior Member
Posts: 16
Joined: Jul 2013
Reputation: 0
Post: #3
(2014-03-30 04:34)Ned Scott Wrote:  In the back of my head I want to say that this is now possible in XBMC v13, but I can't remember for sure, or what the command would look like. I will ask around.

Thanks, I'm looking forward to it Smile
find quote
teemue Offline
Junior Member
Posts: 16
Joined: Jul 2013
Reputation: 0
Post: #4
Any news?
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,909
Joined: Jan 2011
Reputation: 247
Location: Arizona, USA
Post: #5
Something like this, I think: http://forum.stmlabs.com/showthread.php?...0#pid95620

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
find quote
teemue Offline
Junior Member
Posts: 16
Joined: Jul 2013
Reputation: 0
Post: #6
I managed to create a little python script to change display mode. The script must be run before running XBMC. Just grab working resolution, screen and screenmode values out of guisettings.xml and toggle them. This example is for my windowed setup, I use another script for fullscreen mode.

Code:
import os
from xml.etree import ElementTree as ET
xfile = os.path.expanduser("~/Library/Application Support/XBMC/userdata/guisettings.xml")
tree = ET.parse(xfile)

#WINDOWED
tree.find('videoscreen/resolution').text = "15"
tree.find('videoscreen/screen').text = "-1"
tree.find('videoscreen/screenmode').text = "WINDOW"

tree.write (xfile)
find quote