From: Maximilian Friedersdorff Date: Tue, 6 Aug 2019 08:24:03 +0000 (+0100) Subject: Set background pictures for magnesium and barium only X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=171aa8da24cb0f03e08e0fc138e3df2a8ee2a95d;p=max%2Fsaltfiles.git Set background pictures for magnesium and barium only --- 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