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

9 lines
242 B
Bash
Raw Normal View History

2023-06-14 03:16:26 -04:00
#!/usr/bin/env bash
2023-05-29 15:59:55 -04:00
if [[ $(eww state | grep calendar_month) ]]; then
$HOME/.config/eww/scripts/close.sh date && eww close closer
2023-05-29 15:59:55 -04:00
else
$HOME/.config/eww/scripts/close-opened.sh
eww open closer && $HOME/.config/eww/scripts/open.sh date
2023-05-29 15:59:55 -04:00
fi