You could write a wrapper that use setxkbmap to remove the terminate-option, and restore it when slock exits.
On Sun, 27 Sep 2015 21:42:11 +0800 Pickfire <pickf...@riseup.net> wrote: > On Sun, Sep 27, 2015 at 02:15:02PM +0200, 7heo wrote: > >Put > > > >if ! pgrep xinit >/dev/null; then > > start-stop-daemon -S -b startx > > clear > > exit > >fi > > > >At the end if your ~/.${SHELL}rc file. > > What do you mean by that? I mean to disable Xorg > Termination when using `slock`. >
pgpHnjmlrjt5u.pgp
Description: OpenPGP digital signature