nixos-configs/hosts/wim/config/ags/bin/heart.sh

14 lines
189 B
Bash
Raw Normal View History

2023-08-28 00:01:16 -04:00
#!/usr/bin/env bash
FILE="$HOME/.config/.heart"
toggle() {
if grep -q 󰣐 "$FILE"; then
echo  > "$FILE"
else
echo 󰣐 >> "$FILE"
fi
}
[[ "$1" == "toggle" ]] && toggle