From 7e5d613193e0ba04742da310a2eff35b4e4d5904 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Sun, 29 May 2016 21:18:46 +0200 Subject: [PATCH] improve lock screen --- x/.local/bin/lock.sh | 10 ++++++++++ x/.local/bin/network | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 x/.local/bin/lock.sh diff --git a/x/.local/bin/lock.sh b/x/.local/bin/lock.sh new file mode 100755 index 0000000..8b90b23 --- /dev/null +++ b/x/.local/bin/lock.sh @@ -0,0 +1,10 @@ +#!/bin/sh +echo RELOADAGENT | gpg-connect-agent; +import -window root -resize 25% - | convert \ + -pointsize 20 \ + -gravity center \ + -fill white \ + -font DejaVu-Sans-Mono \ + -annotate +0+0 "Type password to unlock" \ + -resize 400% \ + - png:- | i3lock -i /dev/stdin diff --git a/x/.local/bin/network b/x/.local/bin/network index 905ff44..8884eb3 100755 --- a/x/.local/bin/network +++ b/x/.local/bin/network @@ -1,2 +1,2 @@ #!/bin/bash -netctl list | cut -b 3- | dmenu | ifne xargs sudo -A netctl switch-to +netctl list | cut -b 3- | dmenu | ifne xargs bash -c 'sudo -A netctl switch-to && sudo ntpd -qg' -- 2.20.1