官术网_书友最值得收藏!

Hiding the mouse cursor

You might notice the mouse cursor is shown on top of your window even though you don't want to use a mouse in your embedded system. To hide the mouse cursor, you can use the xdotool command to move it to the bottom-right corner pixel, so it's not noticeable, but is still available if you want to occasionally plug in your mouse to debug the device. Install xdotool and create a short Linux script to run it with Cartoonifier:

sudo apt-get install -y xdotool
cd ~/Cartoonifier/build

After installing xdotool, now is the time to create the script, create a new file with your favorite editor with the name runCartoonifier.sh and the following content:

 #!/bin/sh
# Move the mouse cursor to the screen's bottom-right pixel.
xdotoolmousemove 3000 3000
# Run Cartoonifier with any arguments given.
/home/pi/Cartoonifier/build/Cartoonifier "$@"

Finally, make your script executable:

chmod +x runCartoonifier.sh

Try running your script to make sure it works:

DISPLAY=:0 ./runCartoonifier.sh
主站蜘蛛池模板: 上思县| 三门县| 青川县| 乌兰察布市| 宜城市| 丹巴县| 合江县| 新泰市| 斗六市| 永平县| 桂平市| 那曲县| 武平县| 漯河市| 当雄县| 抚宁县| 武陟县| 清河县| 孝感市| 蓬安县| 永安市| 天峨县| 施秉县| 东丽区| 客服| 台安县| 休宁县| 五莲县| 芷江| 北京市| 桑日县| 策勒县| 卓资县| 迁安市| 望奎县| 南汇区| 鄂托克前旗| 平原县| 中牟县| 开原市| 三江|