From e4301645d1ea477ccbe8b3772ce364ec2b428853 Mon Sep 17 00:00:00 2001 From: Viyurz Date: Tue, 22 Oct 2024 11:17:09 +0200 Subject: [PATCH] nf-toggle-notif: Add baguette support --- .config/eww/scripts/toggle-nf-state.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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