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

9 lines
241 B
Bash
Raw Normal View History

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