]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Display images on the lock screen
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 14 May 2019 09:20:12 +0000 (10:20 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 14 May 2019 09:20:12 +0000 (10:20 +0100)
sway/.config/sway/config.base
sway/.local/bin/lock.magnesium [new file with mode: 0755]

index 33f536f57b3954cd6634c0468a20b5193a0eb745..1e3cc5dc9e7fa1c568f9f1b12f12e8c0a616a4f7 100644 (file)
@@ -105,7 +105,7 @@ mode "$ratpoison" {
 
     bindsym Shift+e exec 'swaymsg mode "default"; swaymsg exec dmenu_run'
 
-    bindsym $mod+l exec 'swaymsg mode "default"; swaylock -c 000000
+    bindsym $mod+l exec 'swaymsg mode "default"; "lock.${HOSTNAME}"
     bindsym Escape mode "default"
 }
 
@@ -182,7 +182,7 @@ for_window [class="^rdesktop"] move workspace number 9; floating disable
 for_window [class="Pinentry"] floating enable
 
 exec swayidle \
-  timeout 300 'swaylock -c 000000' \
+  timeout 300 "lock.${HOSTNAME}" \
   timeout 600 'swaymsg "output * dpms off"' \
     resume 'swaymsg "output * dpms on" \
-  before-sleep 'swaylock -c 000000'
+  before-sleep "lock.${HOSTNAME}"
diff --git a/sway/.local/bin/lock.magnesium b/sway/.local/bin/lock.magnesium
new file mode 100755 (executable)
index 0000000..d1db923
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+swaylock \
+       -i HDMI-A-2:~/Pictures/lockscreen_1080_1.png \
+       -i HDMI-A-3:~/Pictures/lockscreen_1080_2.png