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

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
主站蜘蛛池模板: 高碑店市| 公主岭市| 临安市| 常山县| 和龙市| 合川市| 临西县| 江源县| 云南省| 丽江市| 大冶市| 南京市| 政和县| 洛阳市| 尼玛县| 宕昌县| 屏边| 松潘县| 思南县| 安徽省| 富顺县| 将乐县| 仁化县| 尼勒克县| 峨眉山市| 海淀区| 科尔| 思南县| 五莲县| 宜阳县| 绍兴市| 武穴市| 西林县| 九江县| 辰溪县| 贡嘎县| 屯留县| 百色市| 义乌市| 南昌市| 南京市|