feat: add Escape bind to close opened eww widgets
This commit is contained in:
parent
99464bed6e
commit
7f4bf28974
4 changed files with 24 additions and 4 deletions
|
@ -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
13
eww/scripts/esc.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue