Files
illogical-impulse/m3ww/.config/eww/scripts/toggle-dashboard.sh
T
2024-02-22 15:35:06 +07:00

26 lines
559 B
Bash
Executable File

#!/usr/bin/bash
state=$(eww get open_dashboard)
if [[ "$state" -gt "0" || "$1" == "--close" ]]; then
eww close dashboard
eww update open_dashboard=0
sleep 0.1
eww update cavajson=''
else
eww open dashboard
sleep 0.05
eww update open_dashboard=1
sleep 0.05
eww update open_dashboard=2
sleep 0.05
eww update open_dashboard=3
sleep 0.05
eww update open_dashboard=4
sleep 0.05
eww update open_dashboard=5
sleep 0.05
eww update open_dashboard=6
sleep 0.05
eww update open_dashboard=7
fi