Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Home

Klopp

Welcome to your wiki!

This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].

The wiki uses Markdown syntax.

Project Members:


  • Klopp
    Klopp
    2013-10-20

    See also: Screenshots

    Find needed device id:

    [23:16:48] klopp:devlock $ xinput --list
     Virtual core pointer                      id=2    [master pointer  (3)]
        Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
        USB USB Keykoard                          id=10   [slave  pointer  (2)]
        PixArt USB Optical Mouse                  id=11   [slave  pointer  (2)]
        SynPS/2 Synaptics TouchPad                id=14   [slave  pointer  (2)]
     Virtual core keyboard                     id=3    [master keyboard (2)]
         Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
         Power Button                              id=6    [slave  keyboard (3)]
         Video Bus                                 id=7    [slave  keyboard (3)]
         Sleep Button                              id=8    [slave  keyboard (3)]
         Lenovo EasyCamera                         id=12   [slave  keyboard (3)]
         AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]
         Ideapad extra buttons                     id=15   [slave  keyboard (3)]
         USB USB Keykoard                          id=9    [slave  keyboard (3)]
    

    Last line in this example, ''USB USB Keykoard'' (ID ''9'').

    Copy icons:

    [23:16:48] klopp:devlock $ cp i/kb-on.png i/9-on.png
    [23:16:52] klopp:devlock $ cp i/kb-off.png i/9-off.png
    

    or

    create your own icons with names 9-on.png and 9-off.png and put them in i subdirectory of devlock.pl script.

    or

    do nothing to use default icons

    Run

    [23:17:12] klopp:devlock $ ./devlock.pl 9
    

    (device will be locked after script start)

    or

    [23:17:12] klopp:devlock $ ./devlock.pl 9 unlock
    

    to unlock device at start.

    Controls

    1.Left-click: switch locking
    2.Right-click: unlock and exit
    3.SIGHUP: reload icons

    See also: Screenshots

     
    Last edit: Klopp 2013-10-20