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" ]]
then
swaylock
swaylock-fancy --font "JetBrains-Mono-Light"
fi
if [[ "$action" == "suspend" ]]
then
{% if ansible_distribution_release == "void" %}
swaylock && sudo zzz
swaylock-fancy --font "JetBrains-Mono-Light" && sudo zzz
{% else %}
swaylock && systemctl suspend
swaylock-fancy --font "JetBrains-Mono-Light" && systemctl suspend
{% endif %}
fi