Portál AbcLinuxu, 3. prosince 2025 12:59
Backslash (\) Toggle Application Full Screen / Windowed mode To je psané na wiki.xmbc.org, ale nevím proč Suse nic... GlobalKeyboard WikiZkusím to natlačit do keymap.xml O toto mi ani nešlo, spíše to zda existuje nějaký daemon, kde bych zadefinoval přepnutí na druhý CRT připojený přes DVI. Ale vím, že to asi bude problém, protože on na WM okna celkem nebere potaz. WMctrl to nějak nezvládne.
#! /bin/bash
# runs xbmc in a normal window, in Screen 1 (TV)
# then it brings it up to full screen
# this is to avoid xbmc trapping the mouse
# http://forum.xbmc.org/showthread.php?t=36305&highlight=mythtv
STATUS=0
WINCLASS=xbmc.bin.xbmc.bin
DISPLAY=:0.1
SLEEPDELAY=1
/usr/bin/xbmc "$@" &
while [ $STATUS -eq 0 ]
do
sleep $SLEEPDELAY
STATUS=`wmctrl -x -l | grep $WINCLASS | wc -l | awk '{print $1}'`
done
wmctrl -x -r $WINCLASS -b toggle,fullscreen &
-------------------------------------------------------------------------
U mne je problem jiny. ZKousel jsem to na svem MSI MediaLive a na Fedore 13. Mam 2 obrazovky TV-OUT a pres HDMI na 19" LCD. V TV-OUT chci prave to xbmc a na LCD normalne pocitac. Zobrazovaci karta je nvidia. Uz mam nastavene Twin view. vse funguje jak ma, ale problem je kdyz to zkusim spustit v KDE4 tak wmctrl pro obrazovku na TV-OUT hlasi ze nexistuje _NET_CLIENT_LIST(seznam spustenych oken). Tudiz nemuzu prepnout xbmc na fullscreen pomoci wmctrl. Chtel jsem to udelat pomoci xprop,ale uz to je trosku vetsi hardcore. Nevite jak naplnit v KDE4 ten seznam spustenych oken??
#! /bin/bash
# Launch XBMC in windowed mode, then use wmctrl to remove the titlebar
WINCLASS=xbmc.bin.xbmc.bin
SLEEPDELAY=1
# Select display 1
DISPLAY=:0.1
use_XPROP="1"
xwininfo -root -display $DISPLAY
if [ $? != "0" ];then
echo "Can't exist display $DISPLAY"
exit 1
fi
Width=`xwininfo -root -display $DISPLAY |grep Width|awk -F":" '{print $2}'`
if [ -z $Width ];then
echo "Can't exist width"
exit 1
fi
Height=`xwininfo -root -display $DISPLAY |grep Height|awk -F":" '{print $2}'`
if [ -z $Height ];then
echo "Can't exist Height"
exit 1
fi
# Start XBMC without blocking this script
cd /tmp
xbmc --standalone --legacy-res --lircdev /var/run/lirc/lircd &
Pid=$!
# Wait for the XBMC window to appear
status=0
while [ $status -eq 0 ]
do
sleep $SLEEPDELAY
if [ ! -d /proc/$Pid ];then
echo "Can't exists $Pid"
exit 1
fi
if [ $use_XPROP = "1" ];then
WINCLASS=`xwininfo -root -all -tree -int -display $DISPLAY|grep xbmc.bin|awk '{print $1}'
`
echo $WINCLASS
if [ -n $WINCLASS ];then
status=1
fi
else
status=`wmctrl -x -l | grep $WINCLASS | wc -l | awk '{print $1}'`
fi
done
# Force XBMC window to fullscreen
if [ $use_XPROP = "1" ];then
echo $WINCLASS
#xprop -id $WINCLASS -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_FULLSCREEN
wmiface setWindowGeometry $WINCLASS 0 0 $Width $Height
wmiface fullScreenWindow $WINCLASS 1
wmiface forceActiveWindow $WINCLASS 1
else
wmctrl -x -r $WINCLASS -b toggle,fullscreen
fi
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.