feat: add Escape bind to close opened eww widgets

This commit is contained in:
matt1432 2023-05-29 22:21:01 -04:00
parent 99464bed6e
commit 7f4bf28974
4 changed files with 24 additions and 4 deletions
eww
date
scripts

View file

@ -28,7 +28,7 @@
.cal-box {
font-family: Product Sans;
background-color: $bg;
border-radius: 4px;
border-radius: 15px;
padding: 0 1rem .2rem;
color: $fg;
background-color: $contrastbg;

13
eww/scripts/esc.sh Normal file
View file

@ -0,0 +1,13 @@
### this is a WIP
while :
do
if [[ $(eww state) ]]; then
read -s -n1 key
case $key in
$'\e') break;
esac
fi
done
eww close-all