diff --git a/.config/eww/scripts/toggle-nf-state.sh b/.config/eww/scripts/toggle-nf-state.sh index 00480f6..bca3228 100755 --- a/.config/eww/scripts/toggle-nf-state.sh +++ b/.config/eww/scripts/toggle-nf-state.sh @@ -1,7 +1,12 @@ -#!/bin/sh +#!/bin/bash makoctl mode -t dnd if ! makoctl mode | grep -q dnd; then - notify-send "Notifications enabled" + if [[ "$LANG" =~ ^fr ]]; then + text="Notifications activées." + else + text="Notifications enabled." + fi + notify-send "$text" fi