menu

Служба сповіщень Dunst

Dunst - легка та гнучка система система сповіщень що може використовуватись у будь-якому дистрибутиві.

Встановимо Dunst за допомогою менеджера пакетів

sudo apt install dunst

Перевіримо роботу Dunst.

dunstify "Test" "Notification text"

Налаштування dunst знаходяться у файлі ~/.config/dunst/dunstrc. Відкриємо його і вставимо наступний вміст.

[global]
    monitor = 0
    follow = none
    width = 300
    height = 300
    origin = bottom-center
    offset = 10x35
    scale = 0
    notification_limit = 0
    progress_bar = true
    progress_bar_height = 5
    progress_bar_frame_width = 1
    progress_bar_min_width = 150
    progress_bar_max_width = 300
    indicate_hidden = yes
    transparency = 24
    separator_height = 2
    padding = 24
    horizontal_padding = 24
    text_icon_padding = 0
    frame_width = 0
    frame_color = "#aaaaaa"
    gap_size = 0
    separator_color = frame
    sort = yes
    font = Sans 9
    line_height = 0
    markup = full
    format = "<b>%s</b>\n%b"
    alignment = left
    vertical_alignment = center
    show_age_threshold = 60
    ellipsize = middle
    ignore_newline = no
    stack_duplicates = true
    hide_duplicate_count = false
    show_indicators = yes
    icon_position = left
    min_icon_size = 0
    max_icon_size = 32
    icon_path = /usr/share/icons/Papirus/16x16/devices/:/usr/share/icons/Papirus/16x16/status/:/usr/share/icons/Papirus/16x16/apps/:/usr/share/icons/Papirus/16x16/actions/
    sticky_history = yes
    history_length = 20
    dmenu = /usr/bin/dmenu -p dunst
    browser = /usr/bin/xdg-open
    always_run_script = true
    title = Dunst
    class = Dunst
    corner_radius = 3
    ignore_dbusclose = false
    force_xinerama = false
    mouse_left_click = close_current
    mouse_middle_click = do_action, close_current
    mouse_right_click = close_all

[experimental]
    per_monitor_dpi = false

[urgency_low]
    frame_color = "#18191E"
    foreground = "#FFEE79"
    background = "#18191E"
    timeout = 5
    
[urgency_normal]
    frame_color = "#18191E"
    foreground = "#ffffff"
    background = "#18191E"
    timeout = 10
    
[urgency_critical]
    frame_color = "#1D918B
    foreground = "#FFFF00"
    background = "#18191E"
    timeout = 10