I 've been learning Vala over the past few days and want to write something. I found the old lock screen on Q5. ProgramIt is not easy to use. It is often opened by mistake in the bag, so I thought of imitating Android and writing a "gesture unlocking ".
Some libraries, like gee-1.0, were used to store the selected points with the arraylist, The gdk-2.0 was used to draw the "line", the dbus-glib-1 was used to control the "mutex" and to send the "command ", of course, GTK +-2.0 is missing, and the time of creation is displayed.
Timeout is also used for timing. thread. usleep () waits for a pause.
The program is sent in the wisdom of the mission: http://bbs.zhiqi.com.cn/viewthread.php? Tid = 8990
Here is an image:
We plan to take all the functions of the original lock screen program, add the custom gesture to execute the custom program, and add the "theme" customization capability, it only takes too little time every day to be able to "huohuo". I wrote so much first, with time display, 10 seconds to automatically turn off the screen, built-in shutdown, standby, display desktop and other gestures, however, some functional scripts have not been written yet. You can directly modify them in/usr/bin/smartexec.
Download the software:/files/zhongzf/smartscreenlock.zip