mako icon indicating copy to clipboard operation
mako copied to clipboard

do-not-disturb is still disturbing

Open ghost opened this issue 2 years ago • 4 comments

I must be missing something.

Following man 5 mako, I've put:

[mode=do-not-disturb]
invisible=1

in my config file.

Then I add the mode with makoctl mode -a do-not-disturb.

But I'm still receiving all the notifications.

ghost avatar Jul 20 '23 22:07 ghost

Same! I tried it this way:

~ » makoctl dismiss -a
~ » notify-send "test"

The dialog box with: "test" appeared in the corner...

Arch Linux: extra/mako 1.8.0-1

dR3b avatar Aug 04 '23 19:08 dR3b

Does makoctl mode list "do-not-disturb" or no?

hendursaga avatar Jan 01 '24 16:01 hendursaga

Hi same here.

Does makoctl mode list "do-not-disturb" or no?

only returns default.

parisni avatar Feb 08 '24 09:02 parisni

made it work:

# added to config
[mode=hide]
invisible=1

makoctl mode -s hide # hide the notif
makoctl mode -r hide # restore notif + show the hidden notif

maybe the dash in do-not-disturb, i don't know

Also, in the man 5 mako:

makoctl mode ‐a do‐not‐disturb will hide all notifications, makoctl mode ‐r do‐not‐disturb will show them again.

Should be :

makoctl mode ‐s do‐not‐disturb will hide all notifications, makoctl mode ‐r do‐not‐disturb will show them again.

parisni avatar Feb 08 '24 09:02 parisni

@parisni thank you! That was a big help.

I wrote a short script to toggle "do not disturb" on and off:

#!/bin/bash

# Toggle DND
	if [ "$(makoctl mode)" == "dnd" ]; then
	# DND OFF
		makoctl mode -r dnd && echo "DND Mode OFF"
	else
	# DND ON
		makoctl mode -s dnd && echo "DND Mode ON"
	fi

Here's the module:

"custom/mako": {
    "on-click": "~/.config/hypr/scripts/notifications-toggle-dnd",
	"format": "DND {icon}",
	"format-icons": {
      "activated": " ",
      "deactivated": " ",
	},
    "tooltip": true,
	"tooltip-format": "Toggle DND on/off",
},

Does anyone know how to make the toggle icons work?

guttermonk avatar May 10 '24 02:05 guttermonk

Beware, the copy-pasted text from the man page contains special Unicode characters: in the copy-pasted text above "‐" is U+2010, but the correct ASCII character to use "-" is U+002D. getopts will parse U+2010 as a positional argument instead of an option and as a result it will get ignored.

I've pushed 637365585d23 to print an error instead of silently ignoring unused positional arguments.

Note, a toggle flag has been added in https://github.com/emersion/mako/pull/502.

emersion avatar May 10 '24 06:05 emersion