summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/Scripts/lc2
-rwxr-xr-xxinit/Scripts/lock.sh11
-rwxr-xr-xxinit/Scripts/xlaunchrc5
3 files changed, 13 insertions, 5 deletions
diff --git a/scripts/Scripts/lc b/scripts/Scripts/lc
index 8fa73f2..a58d826 100755
--- a/scripts/Scripts/lc
+++ b/scripts/Scripts/lc
@@ -36,7 +36,7 @@ handle_stuff() {
poweroff
fi
if [ "$1" = "lock" ]; then
- xscreensaver-command --lock
+ $HOME/Scripts/lock.sh
fi
# Mics
diff --git a/xinit/Scripts/lock.sh b/xinit/Scripts/lock.sh
new file mode 100755
index 0000000..1e4efed
--- /dev/null
+++ b/xinit/Scripts/lock.sh
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+LOCKFILE=/tmp/lockscreen.png
+
+scrot -o $LOCKFILE
+size=$(identify -format "%[fx:w]x%[fx:h]" "$LOCKFILE")
+
+convert $LOCKFILE -scale 70 -sample $size\! -quality 11 $LOCKFILE
+
+i3lock -i $LOCKFILE
+
diff --git a/xinit/Scripts/xlaunchrc b/xinit/Scripts/xlaunchrc
index 8498bf1..51225d0 100755
--- a/xinit/Scripts/xlaunchrc
+++ b/xinit/Scripts/xlaunchrc
@@ -24,8 +24,6 @@ play ~/Winsounds/login.wav -q &
# Set dbus display variable
dbus-update-activation-environment --systemd DISPLAY
-sxhkd &
-
args="$LOPTS"
for arg in $args
do
@@ -44,8 +42,7 @@ do
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets) &
;;
screensaver)
- xscreensaver &
- xss-lock -- xscreensaver-command --lock &
+ xss-lock -- $HOME/Scripts/lock.sh &
;;
autorandr)
autorandr -c