X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=states%2Fsway%2Ffiles%2Flock;h=da6ab02feca309ea91cfd7168563fcf525a56a56;hb=171aa8da24cb0f03e08e0fc138e3df2a8ee2a95d;hp=050e67a7c308afbd5cbe6e66c210f5641c14b32e;hpb=8d08d220dabe65f6dd5ee690672655ba9c134494;p=max%2Fsaltfiles.git diff --git a/states/sway/files/lock b/states/sway/files/lock index 050e67a..da6ab02 100644 --- a/states/sway/files/lock +++ b/states/sway/files/lock @@ -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