disable ctrl+alt+backspace
This commit is contained in:
parent
b74256d2b9
commit
8bdd144daa
4
slock.c
4
slock.c
@ -154,7 +154,9 @@ disable_sysrq(void) {
|
|||||||
#if POWEROFF
|
#if POWEROFF
|
||||||
// Needs sudo privileges - alter your /etc/sudoers file:
|
// Needs sudo privileges - alter your /etc/sudoers file:
|
||||||
// [username] [hostname] =NOPASSWD: /usr/bin/tee /proc/sys/kernel/sysrq
|
// [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
|
#else
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user