1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-21 23:16:06 +02:00

config swaylock-fancy in powermenu

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

View File

@ -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