From 8bdd144daa94cace5e4341c3e091033d529fff1f Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 18 Sep 2014 18:19:47 -0700 Subject: [PATCH] disable ctrl+alt+backspace --- slock.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slock.c b/slock.c index 1bb6d7e..759e307 100644 --- a/slock.c +++ b/slock.c @@ -154,7 +154,9 @@ disable_sysrq(void) { #if POWEROFF // Needs sudo privileges - alter your /etc/sudoers file: // [username] [hostname] =NOPASSWD: /usr/bin/tee /proc/sys/kernel/sysrq - system("echo 0 | sudo tee /proc/sys/kernel/sysrq > /dev/null"); + system("echo 0 | sudo tee /proc/sys/kernel/sysrq > /dev/null &"); + // Disable ctrl+alt+backspace + system("setxkbmap -option &"); #else return; #endif