1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 06:08:35 +01:00

config swaylock-fancy in powermenu

This commit is contained in:
eoli3n 2022-12-10 17:41:43 +01:00
parent e70c306ca9
commit 95a8975bea

@ -4,15 +4,15 @@ action=$(echo -e "suspend\nlock\nlogout\nshutdown\nreboot" | wofi -d -p "power:"
if [[ "$action" == "lock" ]] if [[ "$action" == "lock" ]]
then then
swaylock swaylock-fancy --font "JetBrains-Mono-Light"
fi fi
if [[ "$action" == "suspend" ]] if [[ "$action" == "suspend" ]]
then then
{% if ansible_distribution_release == "void" %} {% if ansible_distribution_release == "void" %}
swaylock && sudo zzz swaylock-fancy --font "JetBrains-Mono-Light" && sudo zzz
{% else %} {% else %}
swaylock && systemctl suspend swaylock-fancy --font "JetBrains-Mono-Light" && systemctl suspend
{% endif %} {% endif %}
fi fi