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

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
主站蜘蛛池模板: 万宁市| 塔河县| 延长县| 营口市| 定陶县| 嘉义市| 乌恰县| 扶风县| 马尔康县| 平利县| 湛江市| 徐州市| 韶山市| 乌鲁木齐县| 柏乡县| 景宁| 宜宾市| 香港| 晋中市| 个旧市| 晋江市| 越西县| 施甸县| 松溪县| 阆中市| 乌什县| 丰宁| 迁西县| 北京市| 德令哈市| 米泉市| 常德市| 泗水县| 湘潭市| 乌审旗| 富锦市| 安平县| 福建省| 米泉市| 资中县| 临清市|