nixos-configs/waybar/scripts/date-toggle.sh
2023-05-29 15:59:55 -04:00

8 lines
156 B
Bash
Executable file

#!/bin/bash
if [[ $(eww state | grep calendar_month) ]]; then
eww close date && eww close closer
else
eww close-all
eww open date && eww open closer
fi