nixos-configs/waybar/scripts/date-toggle.sh
2023-06-14 03:16:26 -04:00

8 lines
242 B
Bash
Executable file

#!/usr/bin/env bash
if [[ $(eww state | grep calendar_month) ]]; then
$HOME/.config/eww/scripts/close.sh date && eww close closer
else
$HOME/.config/eww/scripts/close-opened.sh
eww open closer && $HOME/.config/eww/scripts/open.sh date
fi