nixos-configs/waybar/scripts/date-toggle.sh

9 lines
156 B
Bash
Raw Normal View History

2023-05-29 15:59:55 -04:00
#!/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