Dunst: modernize config

This commit is contained in:
2021-04-16 00:29:21 +02:00
parent 044ec28311
commit 54ef84b2b1

View File

@@ -31,6 +31,23 @@
# screen width minus the width defined in within the geometry option. # screen width minus the width defined in within the geometry option.
geometry = "400x20-30+20" geometry = "400x20-30+20"
# Turn on the progess bar
progress_bar = true
# Set the progress bar height. This includes the frame, so make sure
# it's at least twice as big as the frame width.
progress_bar_height = 10
# Set the frame width of the progress bar
progress_bar_frame_width = 1
# Set the minimum width for the progress bar
progress_bar_min_width = 150
# Set the maximum width for the progress bar
progress_bar_max_width = 300
# Show how many messages are currently hidden (because of geometry). # Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes indicate_hidden = yes
@@ -59,6 +76,9 @@
# Horizontal padding. # Horizontal padding.
horizontal_padding = 8 horizontal_padding = 8
# Padding between text and icon.
text_icon_padding = 0
# Defines width in pixels of frame around the notification window. # Defines width in pixels of frame around the notification window.
# Set to 0 to disable. # Set to 0 to disable.
frame_width = 3 frame_width = 3
@@ -80,7 +100,8 @@
# Don't remove messages, if the user is idle (no mouse or keyboard input) # Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds. # for longer than idle_threshold seconds.
# Set to 0 to disable. # Set to 0 to disable.
# Transient notifications ignore this setting. # A client can set the 'transient' hint to bypass this. See the rules
# section for how to disable this if necessary
idle_threshold = 120 idle_threshold = 120
### Text ### ### Text ###
@@ -99,7 +120,7 @@
# <u>underline</u> # <u>underline</u>
# #
# For a complete reference see # For a complete reference see
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>. # <https://developer.gnome.org/pango/stable/pango-Markup.html>.
# #
# strip: This setting is provided for compatibility with some broken # strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the # clients that send markup even though it's not enabled on the
@@ -125,12 +146,16 @@
# %n progress value if set without any extra characters # %n progress value if set without any extra characters
# %% Literal % # %% Literal %
# Markup is allowed # Markup is allowed
format = "%a <b>%s</b>\n%b" format = "%a <b>%s</b>\n%b %p"
# Alignment of message text. # Alignment of message text.
# Possible values are "left", "center" and "right". # Possible values are "left", "center" and "right".
alignment = left alignment = left
# Vertical alignment of message text and icon.
# Possible values are "top", "center" and "bottom".
vertical_alignment = center
# Show age of message if message is older than show_age_threshold # Show age of message if message is older than show_age_threshold
# seconds. # seconds.
# Set to -1 to disable. # Set to -1 to disable.
@@ -140,17 +165,17 @@
# geometry. # geometry.
word_wrap = yes word_wrap = yes
# When word_wrap is set to no, specify where to ellipsize long lines. # When word_wrap is set to no, specify where to make an ellipsis in long lines.
# Possible values are "start", "middle" and "end". # Possible values are "start", "middle" and "end".
ellipsize = middle ellipsize = middle
# Ignore newlines '\n' in notifications. # Ignore newlines '\n' in notifications.
ignore_newline = no ignore_newline = no
# Merge multiple notifications with the same content # Stack together notifications with the same content
stack_duplicates = true stack_duplicates = true
# Hide the count of merged notifications with the same content # Hide the count of stacked notifications with the same content
hide_duplicate_count = false hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A). # Display indicators for URLs (U) and actions (A).
@@ -159,13 +184,18 @@
### Icons ### ### Icons ###
# Align icons left/right/off # Align icons left/right/off
icon_position = off icon_position = left
# Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this.
min_icon_size = 0
# Scale larger icons down to this size, set to 0 to disable # Scale larger icons down to this size, set to 0 to disable
max_icon_size = 32 max_icon_size = 32
# Paths to default icons. # Paths to default icons.
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
### History ### ### History ###
@@ -214,6 +244,22 @@
# notification height to avoid clipping text and/or icons. # notification height to avoid clipping text and/or icons.
corner_radius = 0 corner_radius = 0
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
# user defined timeout.
ignore_dbusclose = false
### Wayland ###
# These settings are Wayland-specific. They have no effect when using X11
# Uncomment this if you want to let notications appear under fullscreen
# applications (default: overlay)
# layer = top
# Set this to true to use X11 output on Wayland.
force_xwayland = false
### Legacy ### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support. # Use the Xinerama extension instead of RandR for multi-monitor support.
@@ -226,6 +272,21 @@
# layout changes. # layout changes.
force_xinerama = false force_xinerama = false
### mouse
# Defines list of actions for each mouse event
# Possible values are:
# * none: Don't do anything.
# * do_action: If the notification has exactly one action, or one is marked as default,
# invoke it. If there are multiple and no default, open the context menu.
# * close_current: Close current notification.
# * close_all: Close all notifications.
# These values can be strung together for each mouse event, and
# will be executed in sequence.
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them # Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases. # to have a consistent behaviour across releases.
[experimental] [experimental]
@@ -236,6 +297,10 @@
# where there are multiple screens with very different dpi values. # where there are multiple screens with very different dpi values.
per_monitor_dpi = false per_monitor_dpi = false
# The internal keyboard shortcut support in dunst is now considered deprecated
# and should be replaced by dunstctl calls. You can use the configuration of your
# WM or DE to bind these to shortcuts of your choice.
# Check the dunstctl manual page for more info.
[shortcuts] [shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key # Shortcuts are specified as [modifier+][modifier+]...key
@@ -243,20 +308,21 @@
# "mod3" and "mod4" (windows-key). # "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys. # Xev might be helpful to find names for keys.
# Close notification. # Close notification. Equivalent dunstctl command:
#close = ctrl+space # dunstctl close
# close = ctrl+space
# Close all notifications. # Close all notifications. Equivalent dunstctl command:
close_all = ctrl+shift+space # dunstctl close-all
# close_all = ctrl+shift+space
# Redisplay last message(s). # Redisplay last message(s). Equivalent dunstctl command:
# On the US keyboard layout "grave" is normally above TAB and left # dunstctl history-pop
# of "1". Make sure this key actually exists on your keyboard layout, # history = ctrl+grave
# e.g. check output of 'xmodmap -pke'
history = ctrl+grave
# Context menu. # Context menu. Equivalent dunstctl command:
context = ctrl+shift+period # dunstctl context
# context = ctrl+shift+period
[urgency_low] [urgency_low]
# IMPORTANT: colors have to be defined in quotation marks. # IMPORTANT: colors have to be defined in quotation marks.
@@ -284,11 +350,36 @@
# Every section that isn't one of the above is interpreted as a rules to # Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages. # override settings for certain messages.
# Messages can be matched by "appname", "summary", "body", "icon", "category", #
# "msg_urgency" and you can override the "timeout", "urgency", "foreground", # Messages can be matched by
# "background", "frame_color", "new_icon" and "format", "fullscreen". # appname (discouraged, see desktop_entry)
# body
# category
# desktop_entry
# icon
# match_transient
# msg_urgency
# stack_tag
# summary
#
# and you can override the
# background
# foreground
# format
# frame_color
# fullscreen
# new_icon
# set_stack_tag
# set_transient
# timeout
# urgency
#
# Shell-like globbing will get expanded. # Shell-like globbing will get expanded.
# #
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
# GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized.
#
# SCRIPTING # SCRIPTING
# You can specify a script that gets run when the rule matches by # You can specify a script that gets run when the rule matches by
# setting the "script" option. # setting the "script" option.
@@ -301,13 +392,24 @@
# NOTE: It might be helpful to run dunst -print in a terminal in order # NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules. # to find fitting options for rules.
# Disable the transient hint so that idle_threshold cannot be bypassed from the
# client
#[transient_disable]
# match_transient = yes
# set_transient = no
#
# Make the handling of transient notifications more strict by making them not
# be placed in history.
#[transient_history_ignore]
# match_transient = yes
# history_ignore = yes
# fullscreen values # fullscreen values
# show: show the notifications, regardless if there is a fullscreen window opened # show: show the notifications, regardless if there is a fullscreen window opened
# delay: displays the new notification, if there is there is no fullscreen window active # delay: displays the new notification, if there is no fullscreen window active
# If the notification is already drawn, it won't get undrawn. # If the notification is already drawn, it won't get undrawn.
# pushback: same as delay, but when switching into fullscreen, the notification will get # pushback: same as delay, but when switching into fullscreen, the notification will get
# withdrawn from screen again and will get delayed like a new notification # withdrawn from screen again and will get delayed like a new notification
#[fullscreen_delay_everything] #[fullscreen_delay_everything]
# fullscreen = delay # fullscreen = delay
#[fullscreen_show_critical] #[fullscreen_show_critical]
@@ -332,6 +434,11 @@
# summary = "foobar" # summary = "foobar"
# history_ignore = yes # history_ignore = yes
#[skip-display]
# # This notification will not be displayed, but will be included in the history
# summary = "foobar"
# skip_display = yes
#[signed_on] #[signed_on]
# appname = Pidgin # appname = Pidgin
# summary = "*signed on*" # summary = "*signed on*"
@@ -352,4 +459,8 @@
# summary = *twitter.com* # summary = *twitter.com*
# urgency = normal # urgency = normal
# #
#[stack-volumes]
# appname = "some_volume_notifiers"
# set_stack_tag = "volume"
#
# vim: ft=cfg # vim: ft=cfg