diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/.gdbinit | 3 | ||||
-rwxr-xr-x | misc/bin/lock.sh | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/misc/.gdbinit b/misc/.gdbinit index b1eb7d8..b2c8a1f 100644 --- a/misc/.gdbinit +++ b/misc/.gdbinit @@ -2,6 +2,7 @@ set print static-members off set print frame-arguments all # unlimited print string length set print elements 0 +handle SIGCONT nostop handle SIGUSR1 nostop noprint handle SIGUSR2 nostop noprint handle SIGWAITING nostop noprint @@ -18,6 +19,8 @@ alias wl = watch -l alias awl = awatch -l alias rwl = rwatch -l alias rt = restart +# Print backtrace of all threads +alias abt = thread apply all bt set history save on set history filename ~/.gdb_history set history remove-duplicates unlimited 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 |