From: Maximilian Friedersdorff Date: Tue, 14 May 2019 09:20:12 +0000 (+0100) Subject: Display images on the lock screen X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=9cf8dae6aec2c66cb0d50250be388ae5e15f3a34;p=max%2Fdotfiles.git Display images on the lock screen --- diff --git a/sway/.config/sway/config.base b/sway/.config/sway/config.base index 33f536f..1e3cc5d 100644 --- a/sway/.config/sway/config.base +++ b/sway/.config/sway/config.base @@ -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 index 0000000..d1db923 --- /dev/null +++ b/sway/.local/bin/lock.magnesium @@ -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