While learning and writing, I wrote a "gesture unlocking"

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.