Skip to content

Using escape key to close Dunst notifications #366

Answered by geekosaur
wgmayer0 asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you're using the config @slotThe gave you here, you would add something like this to the list of actions after additionalKeysP:

    ,("<Escape>", spawn "[[ $(dunstctl count displayed) != 0 ]] && dunstctl close || xdotool key Escape")

Note the caveat I posted in the original issue, though. This is also documented in the xdotool manual.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@wgmayer0
Comment options

@geekosaur
Comment options

@wgmayer0
Comment options

@geekosaur
Comment options

@wgmayer0
Comment options

Answer selected by slotThe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants