mirror of
https://github.com/brmlab/BLIT.git
synced 2025-06-08 03:44:00 +02:00
initial BLIT commit
This commit is contained in:
parent
7c2356fe80
commit
5130a2ab11
24 changed files with 900 additions and 0 deletions
23
thinkpad-antitheft/lockscreen.sh
Executable file
23
thinkpad-antitheft/lockscreen.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash -x
|
||||
export DISPLAY=:0
|
||||
TPTHEFT_PIDFILE="/tmp/tp-theft.pid"
|
||||
|
||||
## stop dunst notifications?
|
||||
#/usr/bin/killall -SIGUSR1 dunst &
|
||||
|
||||
# forget all sudo cached credentials
|
||||
/usr/bin/sudo -K
|
||||
|
||||
# turn on TP-theft protection
|
||||
/usr/bin/sudo /usr/local/bin/tp-theft.pl -a &
|
||||
|
||||
# log TP-theft PID
|
||||
echo $! >${TPTHEFT_PIDFILE}
|
||||
|
||||
# switch to i3 WM workspace that is not in use and has zero possibility you'd write
|
||||
# confidential information (like password) blindly into some application (i.e. to an IRC)
|
||||
/usr/bin/i3-msg workspace 99 && /usr/bin/i3lock -i /home/ruza/tmp/images/Terminal.png -f
|
||||
|
||||
## screen was unlocked so kill an antitheft script
|
||||
/usr/bin/sudo /bin/kill -9 $(cat $TPTHEFT_PIDFILE)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue