Linux Positioning XBMC Window with wmctrl and BASH
#1
I have created a small bash script to launch XBMC, and place XBMC it on the left or right monitor in my dual screen setup

But I cannot get it to work, if I echo all the wmctrl commands instead of exec, and run them manually they work in a terminal

http://pastebin.com/ex88Nfg3

Anyone who can help me figure out what the problem might be?
Reply
#2
I think you need to set the DISPLAY variable. Put

export DISPLAY=:0

At the start of the script
Reply

Logout Mark Read Team Forum Stats Members Help
Positioning XBMC Window with wmctrl and BASH0