]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Set background pictures for magnesium and barium only
authorMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 08:24:03 +0000 (09:24 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Tue, 6 Aug 2019 08:24:03 +0000 (09:24 +0100)
states/sway/files/lock

index 050e67a7c308afbd5cbe6e66c210f5641c14b32e..da6ab02feca309ea91cfd7168563fcf525a56a56 100644 (file)
@@ -5,8 +5,13 @@ 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 %}
+
 
 if [ $(pgrep -c lock.magnesium) -gt 1 ]; then
        exit