[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: locking all terminals w/ a single command?



as a lame work-around hack, i've done the following:

  1) created the following entry in /usr/share/misc/keycap.pcvt:

     # only tested on one type of keyboard
     noctrl|Disabling Control Keys:\
		      :D58:D64:

  2) created the following shell script (named 'alock'):

     #! /bin/sh

     /sbin/kbd noctrl
     /usr/bin/lock $@ && /sbin/kbd `/bin/cat /etc/kbdtype`

now, to lock my screen, i use 'alock -np'.





Visit your host, monkey.org