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

15 lines
368 B
Bash
Executable File

#!/usr/bin/bash
state=$(eww get open_bottomsheet)
if [[ "$state" == "true" || "$1" == "--close" ]]; then
eww update open_bottomsheet=false
sleep 0.2
eww close bottomsheet_back 2>/dev/null
eww close bottomsheet 2>/dev/null
eww update cavajson='[]'
else
eww open bottomsheet_back
eww open bottomsheet
eww update open_bottomsheet=true
fi