]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/sway/files/lock
Update/improve locking behaviour
[max/saltfiles.git] / states / sway / files / lock
index da6ab02feca309ea91cfd7168563fcf525a56a56..936b955c261c5eaa930b13763ebf0979433f984d 100644 (file)
@@ -4,14 +4,7 @@ NAG_MSG="Smartcard is still plugged in, not locking! \
 Remove now to lock."
 NOLOCK_MSG="Smartcard was not removed, did not lock!"
 
-LOCK_CMD="swaylock "
-{% if grains['host'] == 'magnesium' %}
-LOCK_CMD+=" -i HDMI-A-2:~/Pictures/lockscreen_1080_1.png"
-LOCK_CMD+=" -i HDMI-A-3:~/Pictures/lockscreen_1080_2.png"
-{% elif grains['host'] == 'barium' %}
-LOCK_CMD+=" -i eDP-1:~/Pictures/lockscreen_1080_1.png"
-{% endif %}
-
+LOCK_CMD="systemctl suspend"
 
 if [ $(pgrep -c lock.magnesium) -gt 1 ]; then
        exit