improve lock screen
authorMart Lubbers <mart@martlubbers.net>
Sun, 29 May 2016 19:18:46 +0000 (21:18 +0200)
committerMart Lubbers <mart@martlubbers.net>
Sun, 29 May 2016 19:18:46 +0000 (21:18 +0200)
x/.local/bin/lock.sh [new file with mode: 0755]
x/.local/bin/network

diff --git a/x/.local/bin/lock.sh b/x/.local/bin/lock.sh
new file mode 100755 (executable)
index 0000000..8b90b23
--- /dev/null
@@ -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
index 905ff44..8884eb3 100755 (executable)
@@ -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'