X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Flock;h=00ed2a83eeb91f304f21363911412a4db6cea6ce;hb=586371d4a361ad23c0b62352c24acc50f67f4f6a;hp=da6ab02feca309ea91cfd7168563fcf525a56a56;hpb=171aa8da24cb0f03e08e0fc138e3df2a8ee2a95d;p=max%2Fsaltfiles.git diff --git a/states/sway/files/lock b/states/sway/files/lock index da6ab02..00ed2a8 100644 --- a/states/sway/files/lock +++ b/states/sway/files/lock @@ -5,11 +5,15 @@ Remove now to lock." NOLOCK_MSG="Smartcard was not removed, did not lock!" LOCK_CMD="swaylock " +SLEEP_CMD=":" {% 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 DP-1:~/Pictures/lockscreen_1080_1.png" LOCK_CMD+=" -i eDP-1:~/Pictures/lockscreen_1080_1.png" +LOCK_CMD+=" -i HDMI-A-1:~/Pictures/lockscreen_1080_1.png" +SLEEP_CMD="systemctl suspend" {% endif %} @@ -34,5 +38,7 @@ else done pkill -f "$NAG_MSG" fi - $LOCK_CMD + $LOCK_CMD & + sleep 10 + $SLEEP_CMD fi