nf-toggle-notif: Add baguette support

This commit is contained in:
Viyurz 2024-10-22 11:17:09 +02:00
parent e36d9805bf
commit e4301645d1
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -1,7 +1,12 @@
#!/bin/sh #!/bin/bash
makoctl mode -t dnd makoctl mode -t dnd
if ! makoctl mode | grep -q dnd; then 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 fi