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

9 lines
234 B
Bash
Raw Normal View History

2023-05-29 15:59:55 -04:00
#!/bin/bash
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
$HOME/.config/eww/scripts/open.sh date && eww open closer
2023-05-29 15:59:55 -04:00
fi