dotfiles/.config/eww/scripts/toggle-nf-state.sh

15 lines
277 B
Bash
Executable file

#!/bin/bash
makoctl mode -t dnd
if ! makoctl mode | grep -q dnd; then
eww update nf-enabled=true
if [[ "$LANG" =~ ^fr ]]; then
text="Notifications activées."
else
text="Notifications enabled."
fi
notify-send "$text"
else
eww update nf-enabled=false
fi