# Mako notification configuration
# Styled to match Sway/Fuzzel/eww theme
# Generated from template using ~/.config/update-colors

# Appearance
font=JetBrainsMono Nerd Font 10
background-color=#1c2433
text-color=#afbbd2
border-color=#69C3FF
border-size=3
border-radius=7
width=300
height=300
margin=5
padding=8
icon-path=/usr/share/icons/Papirus-Dark
max-icon-size=48

# Layout
anchor=top-right
outer-margin=30,0,0,0

# Behavior
default-timeout=6000
# Force mako's own timeouts so no notification (critical or not) can hang
# indefinitely, even if the app requests timeout=0 (never).
ignore-timeout=1
max-visible=5
sort=-time
group-by=app-name
max-history=20

# Progress bar for notifications that report progress (downloads, updates)
progress-color=over #69C3FF

# Format - plain text (markup=0) so app text with <tag> renders literally.
# Priority is shown by a leading icon instead of markup/colors.
markup=0
format= %s (%a)\n%b

# Mouse bindings
on-button-left=exec ~/.config/mako/scripts/handle-click $id
on-button-middle=none
on-button-right=exec makoctl dismiss -n $id
on-notify=exec ~/.config/mako/scripts/notify-sound $id

# Urgency levels
[urgency=low]
background-color=#212a3b
border-color=#405275
format= %s (%a)\n%b

[urgency=normal]
background-color=#1c2433
border-color=#69C3FF
format= %s (%a)\n%b

[urgency=critical]
background-color=#1c2433
border-color=#FF738A
format=󰈸 %s (%a)\n%b
# Was 0 (never) - critical notifications now auto-dismiss after 15s
default-timeout=15000

# Grouped notifications (group-by=app-name) - plain text, icon per urgency
[grouped]
format= (%g) %s\n%b

[grouped urgency=low]
format= (%g) %s\n%b

[grouped urgency=critical]
format=󰈸 (%g) %s\n%b

# Placeholder shown when more notifications exist than max-visible
[hidden]
format=󰁉 +%h more

# Pi agent notifications (sent via the pi QoL extension from wezterm)
[app-name=wezterm summary=Pi]
border-color=#EACD61
background-color=#212a3b

# Do-not-disturb: makoctl mode -a dnd hides all notifications.
# Must stay last so it overrides every style above.
[mode=dnd]
invisible=1
