diff options
author | xengineering <me@xengineering.eu> | 2024-12-20 20:54:12 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-12-20 20:57:41 +0100 |
commit | 585ed127ca85925d8f16560d75c87b2a2a8a94a0 (patch) | |
tree | 63edd434241aa66be005f74e86084d3b1abef903 | |
parent | 7fac184892e197a4f752da5046da54fe698f3d39 (diff) | |
download | dotfiles-585ed127ca85925d8f16560d75c87b2a2a8a94a0.tar dotfiles-585ed127ca85925d8f16560d75c87b2a2a8a94a0.tar.zst dotfiles-585ed127ca85925d8f16560d75c87b2a2a8a94a0.zip |
dunst: Reset to default Arch Linux config
The configuration was somehow broken leading to huge heights of the
notification frames.
-rw-r--r-- | dunst/dunstrc | 112 |
1 files changed, 88 insertions, 24 deletions
diff --git a/dunst/dunstrc b/dunst/dunstrc index dca19f6..7903ff8 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -17,33 +17,41 @@ # # If this option is set to mouse or keyboard, the monitor option # will be ignored. - follow = mouse + follow = none ### Geometry ### + # The width of the window, excluding the frame. # dynamic width from 0 to 300 # width = (0, 300) # constant width of 300 width = 300 - # The maximum height of a single notification, excluding the frame. - height = 300 + # The height of a single notification, excluding the frame. + # dynamic height from 0 to 300 + height = (0, 300) + # constant height of 300 + # height = 300 + # NOTE: Dunst from version 1.11 and older don't support dynamic height + # and the given value is treated as the maximum height # Position the notification in the top right corner origin = top-right # Offset from the origin - offset = 10x50 + # NOTE: Dunst from version 1.11 and older use this alternative notation + # offset = 10x50 + offset = (10, 50) # Scale factor. It is auto-detected if value is 0. scale = 0 # Maximum number of notification (0 means no limit) - notification_limit = 0 + notification_limit = 20 ### Progress bar ### - # Turn on the progess bar. It appears when a progress hint is passed with + # Turn on the progress bar. It appears when a progress hint is passed with # for example dunstify -h int:value:12 progress_bar = true @@ -60,6 +68,19 @@ # Set the maximum width for the progress bar progress_bar_max_width = 300 + # Corner radius for the progress bar. 0 disables rounded corners. + progress_bar_corner_radius = 0 + + # Define which corners to round when drawing the progress bar. If progress_bar_corner_radius + # is set to 0 this option will be ignored. + progress_bar_corners = all + + # Corner radius for the icon image. + icon_corner_radius = 0 + + # Define which corners to round when drawing the icon image. If icon_corner_radius + # is set to 0 this option will be ignored. + icon_corners = all # Show how many messages are currently hidden (because of # notification_limit). @@ -73,6 +94,7 @@ # Draw a line of "separator_height" pixel height between two # notifications. # Set to 0 to disable. + # If gap_size is greater than 0, this setting will be ignored. separator_height = 2 # Padding between text and separator. @@ -86,11 +108,17 @@ # Defines width in pixels of frame around the notification window. # Set to 0 to disable. - frame_width = 2 # 3 + frame_width = 3 # Defines color of the frame around the notification window. frame_color = "#aaaaaa" + # Size of gap to display between notifications - requires a compositor. + # If value is greater than 0, separator_height will be ignored and a border + # of size frame_width will be drawn around each notification instead. + # Click events on gaps do not currently propagate to applications below. + gap_size = 0 + # Define a color for the separator. # possible values are: # * auto: dunst tries to find a color fitting to the background; @@ -99,7 +127,12 @@ # * anything else will be interpreted as a X color. separator_color = frame - # Sort messages by urgency. + # Sort type. + # possible values are: + # * id: sort by id + # * urgency_ascending: sort by urgency (low then normal then critical) + # * urgency_descending: sort by urgency (critical then normal then low) + # * update: sort by update (most recent always at the top) sort = yes # Don't remove messages, if the user is idle (no mouse or keyboard input) @@ -125,7 +158,7 @@ # <u>underline</u> # # For a complete reference see - # <https://developer.gnome.org/pango/stable/pango-Markup.html>. + # <https://docs.gtk.org/Pango/pango_markup.html>. # # strip: This setting is provided for compatibility with some broken # clients that send markup even though it's not enabled on the @@ -174,7 +207,7 @@ ignore_newline = no # Stack together notifications with the same content - stack_duplicates = false # true + stack_duplicates = true # Hide the count of stacked notifications with the same content hide_duplicate_count = false @@ -184,18 +217,27 @@ ### Icons ### - # Align icons left/right/off + # Recursive icon lookup. You can set a single theme, instead of having to + # define all lookup paths. + enable_recursive_icon_lookup = true + + # Set icon theme (only used for recursive icon lookup) + icon_theme = Adwaita + # You can also set multiple icon themes, with the leftmost one being used first. + # icon_theme = "Adwaita, breeze" + + # Align icons left/right/top/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 + min_icon_size = 32 # Scale larger icons down to this size, set to 0 to disable - max_icon_size = 32 + max_icon_size = 128 - # Paths to default icons. + # Paths to default icons (only necessary when not using recursive icon lookup) icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ ### History ### @@ -218,10 +260,10 @@ # Always run rule-defined scripts, even if the notification is suppressed always_run_script = true - # Define the title of the windows spawned by dunst + # Define the title of the windows spawned by dunst (X11 only) title = Dunst - # Define the class of the windows spawned by dunst + # Define the class of the windows spawned by dunst (X11 only) class = Dunst # Define the corner radius of the notification window @@ -229,7 +271,14 @@ # corners. # The radius will be automatically lowered if it exceeds half of the # notification height to avoid clipping text and/or icons. - corner_radius = 5 + corner_radius = 0 + + # Define which corners to round when drawing the window. If the corner radius + # is set to 0 this option will be ignored. + # + # Comma-separated list of the corners. The accepted corner values are bottom-right, + # bottom-left, top-right, top-left, top, bottom, left, right or all. + corners = all # Ignore the dbus closeNotification message. # Useful to enforce the timeout set by dunst configuration. Without this @@ -240,7 +289,7 @@ ### Wayland ### # These settings are Wayland-specific. They have no effect when using X11 - # Uncomment this if you want to let notications appear under fullscreen + # Uncomment this if you want to let notifications appear under fullscreen # applications (default: overlay) # layer = top @@ -295,23 +344,25 @@ background = "#222222" foreground = "#888888" timeout = 10 - # Icon for notifications with low urgency, uncomment to enable - #icon = /path/to/icon + # Icon for notifications with low urgency + default_icon = dialog-information [urgency_normal] background = "#285577" foreground = "#ffffff" timeout = 10 - # Icon for notifications with normal urgency, uncomment to enable - #icon = /path/to/icon + override_pause_level = 30 + # Icon for notifications with normal urgency + default_icon = dialog-information [urgency_critical] background = "#900000" foreground = "#ffffff" frame_color = "#ff0000" timeout = 0 - # Icon for notifications with critical urgency, uncomment to enable - #icon = /path/to/icon + override_pause_level = 60 + # Icon for notifications with critical urgency + default_icon = dialog-warning # Every section that isn't one of the above is interpreted as a rules to # override settings for certain messages. @@ -336,9 +387,18 @@ # new_icon # set_stack_tag # set_transient +# set_category # timeout # urgency +# icon_position +# skip_display +# history_ignore # action_name +# word_wrap +# ellipsize +# alignment +# hide_text +# override_pause_level # # Shell-like globbing will get expanded. # @@ -346,6 +406,10 @@ # GLib based applications export their desktop-entry name. In comparison to the appname, # the desktop-entry won't get localized. # +# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level. +# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules: +# override_pause_level = X + # SCRIPTING # You can specify a script that gets run when the rule matches by # setting the "script" option. |