Actually, I don't quite understand what it is doing.
I had some test this morning and found out that the script does nothing else except to change the string from true
to false
and from false
to true
, regardless of the actual DND status. In other word, it does not reflect the actual DND status.
After some tests, I'm able to use some portion of the script in a macro. I tested it a few times. It seems to be working reliably.
MACRO: DND - Toggle Do Not Disturb
DOWNLOAD Macro File:
DND - Toggle Do Not Disturb.kmmacros
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.