nixos-configs/config/eww/scripts/heart.sh

14 lines
240 B
Bash
Executable file

#!/usr/bin/env bash
FILE="$HOME/.config/.heart"
if [[ ! -f "$FILE" ]]; then
echo 󰣐 > "$FILE"
fi
if grep -q 󰣐 "$FILE"; then
eww update heart-ts=false
echo  > "$FILE"
else
eww update heart-ts=true
echo 󰣐 >> "$FILE"
fi