107 lines
1.7 KiB
Markdown
107 lines
1.7 KiB
Markdown
---
|
|
publish: true
|
|
permalink: /os/mako
|
|
title: Mako
|
|
created: 2026-01-29T15:18:16.265-07:00
|
|
modified: 2026-02-05T12:18:02.159-07:00
|
|
tags:
|
|
- notifications
|
|
- wayland
|
|
- hyprland
|
|
cssclasses: ""
|
|
---
|
|
|
|
Mako is a lightweight notification daemon for Wayland compositors.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
sudo pacman -S mako libnotify
|
|
```
|
|
|
|
## Configuration
|
|
|
|
Config location: `~/.config/mako/config`
|
|
|
|
```ini
|
|
# Appearance
|
|
font=monospace 11
|
|
background-color=#282828
|
|
text-color=#ebdbb2
|
|
border-color=#458588
|
|
border-size=2
|
|
border-radius=5
|
|
|
|
# Behavior
|
|
default-timeout=5000
|
|
ignore-timeout=0
|
|
max-visible=5
|
|
|
|
# Position
|
|
anchor=top-right
|
|
margin=10
|
|
|
|
# Grouping
|
|
group-by=app-name
|
|
|
|
# Actions
|
|
on-button-left=dismiss
|
|
on-button-right=dismiss-all
|
|
|
|
# Urgency-specific
|
|
[urgency=low]
|
|
background-color=#282828
|
|
|
|
[urgency=normal]
|
|
background-color=#282828
|
|
|
|
[urgency=critical]
|
|
background-color=#cc241d
|
|
default-timeout=0
|
|
```
|
|
|
|
## Hyprland Integration
|
|
|
|
Add to `~/.config/hypr/hyprland.conf`:
|
|
```bash
|
|
exec-once = mako
|
|
```
|
|
|
|
## Usage
|
|
|
|
### Test notifications
|
|
```bash
|
|
notify-send "Hello" "This is a test notification"
|
|
notify-send -u critical "Warning" "This is urgent!"
|
|
```
|
|
|
|
### Control mako
|
|
```bash
|
|
makoctl dismiss # Dismiss latest
|
|
makoctl dismiss --all # Dismiss all
|
|
makoctl restore # Restore last dismissed
|
|
makoctl list # List waiting notifications
|
|
makoctl reload # Reload config
|
|
```
|
|
|
|
## Do Not Disturb
|
|
|
|
```bash
|
|
# Enable DND
|
|
makoctl set-mode do-not-disturb
|
|
|
|
# Disable DND
|
|
makoctl set-mode default
|
|
```
|
|
|
|
Add a keybind:
|
|
```bash
|
|
bind = SUPER, N, exec, makoctl set-mode do-not-disturb
|
|
bind = SUPER SHIFT, N, exec, makoctl set-mode default
|
|
```
|
|
|
|
## Resources
|
|
|
|
- GitHub: https://github.com/emersion/mako
|
|
- Man page: `man 5 mako`
|