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

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
主站蜘蛛池模板: 卢氏县| 永修县| 榕江县| 泰来县| 林州市| 龙川县| 贺州市| 文昌市| 邹城市| 都兰县| 弥勒县| 惠东县| 温宿县| 永新县| 新绛县| 尖扎县| 墨竹工卡县| 扎赉特旗| 永寿县| 林芝县| 连平县| 郎溪县| 灵丘县| 宜君县| 井冈山市| 五原县| 涪陵区| 板桥市| 泰兴市| 邻水| 温州市| 德格县| 双江| 南木林县| 舟山市| 滕州市| 潮州市| 龙里县| 凉城县| 塘沽区| 河曲县|