From ad1cdc1f55bf90f635365b728b91888edf31fa6e Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Wed, 11 Oct 2023 22:38:03 +1100 Subject: [emacs] [gdb] Some minor changes - emacs: my-elide-region that does the same thing as message-elide-region, with the comment-start as the prefix - gdbinit: an alias to a command that displays all backtrace of all threads --- misc/bin/lock.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 misc/bin/lock.sh (limited to 'misc/bin') diff --git a/misc/bin/lock.sh b/misc/bin/lock.sh new file mode 100755 index 0000000..6088b94 --- /dev/null +++ b/misc/bin/lock.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Take a screenshot +scrot -o /tmp/screen_locked.png + +# Pixellate it 10x +mogrify -scale 10% -scale 1000% /tmp/screen_locked.png + +# Lock screen displaying this image. +i3lock -i /tmp/screen_locked.png -- cgit v1.2.3