You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

486 lines
16 KiB

2 months ago
  1. # See dunst(5) for all configuration options
  2. [global]
  3. ### Display ###
  4. # Which monitor should the notifications be displayed on.
  5. monitor = 0
  6. # Display notification on focused monitor. Possible modes are:
  7. # mouse: follow mouse pointer
  8. # keyboard: follow window with keyboard focus
  9. # none: don't follow anything
  10. #
  11. # "keyboard" needs a window manager that exports the
  12. # _NET_ACTIVE_WINDOW property.
  13. # This should be the case for almost all modern window managers.
  14. #
  15. # If this option is set to mouse or keyboard, the monitor option
  16. # will be ignored.
  17. follow = none
  18. ### Geometry ###
  19. # dynamic width from 0 to 300
  20. # width = (0, 300)
  21. # constant width of 300
  22. width = 300
  23. # The maximum height of a single notification, excluding the frame.
  24. height = 300
  25. # Position the notification in the top right corner
  26. origin = top-right
  27. # Offset from the origin
  28. offset = 10x50
  29. # Scale factor. It is auto-detected if value is 0.
  30. scale = 0
  31. # Maximum number of notification (0 means no limit)
  32. notification_limit = 20
  33. ### Progress bar ###
  34. # Turn on the progress bar. It appears when a progress hint is passed with
  35. # for example dunstify -h int:value:12
  36. progress_bar = true
  37. # Set the progress bar height. This includes the frame, so make sure
  38. # it's at least twice as big as the frame width.
  39. progress_bar_height = 10
  40. # Set the frame width of the progress bar
  41. progress_bar_frame_width = 1
  42. # Set the minimum width for the progress bar
  43. progress_bar_min_width = 150
  44. # Set the maximum width for the progress bar
  45. progress_bar_max_width = 300
  46. # Corner radius for the progress bar. 0 disables rounded corners.
  47. progress_bar_corner_radius = 0
  48. # Define which corners to round when drawing the progress bar. If progress_bar_corner_radius
  49. # is set to 0 this option will be ignored.
  50. progress_bar_corners = all
  51. # Corner radius for the icon image.
  52. icon_corner_radius = 0
  53. # Define which corners to round when drawing the icon image. If icon_corner_radius
  54. # is set to 0 this option will be ignored.
  55. icon_corners = all
  56. # Show how many messages are currently hidden (because of
  57. # notification_limit).
  58. indicate_hidden = yes
  59. # The transparency of the window. Range: [0; 100].
  60. # This option will only work if a compositing window manager is
  61. # present (e.g. xcompmgr, compiz, etc.). (X11 only)
  62. transparency = 0
  63. # Draw a line of "separator_height" pixel height between two
  64. # notifications.
  65. # Set to 0 to disable.
  66. # If gap_size is greater than 0, this setting will be ignored.
  67. separator_height = 2
  68. # Padding between text and separator.
  69. padding = 8
  70. # Horizontal padding.
  71. horizontal_padding = 8
  72. # Padding between text and icon.
  73. text_icon_padding = 0
  74. # Defines width in pixels of frame around the notification window.
  75. # Set to 0 to disable.
  76. frame_width = 3
  77. # Defines color of the frame around the notification window.
  78. frame_color = "#aaaaaa"
  79. # Size of gap to display between notifications - requires a compositor.
  80. # If value is greater than 0, separator_height will be ignored and a border
  81. # of size frame_width will be drawn around each notification instead.
  82. # Click events on gaps do not currently propagate to applications below.
  83. gap_size = 0
  84. # Define a color for the separator.
  85. # possible values are:
  86. # * auto: dunst tries to find a color fitting to the background;
  87. # * foreground: use the same color as the foreground;
  88. # * frame: use the same color as the frame;
  89. # * anything else will be interpreted as a X color.
  90. separator_color = frame
  91. # Sort type.
  92. # possible values are:
  93. # * id: sort by id
  94. # * urgency_ascending: sort by urgency (low then normal then critical)
  95. # * urgency_descending: sort by urgency (critical then normal then low)
  96. # * update: sort by update (most recent always at the top)
  97. sort = yes
  98. # Don't remove messages, if the user is idle (no mouse or keyboard input)
  99. # for longer than idle_threshold seconds.
  100. # Set to 0 to disable.
  101. # A client can set the 'transient' hint to bypass this. See the rules
  102. # section for how to disable this if necessary
  103. # idle_threshold = 120
  104. ### Text ###
  105. font = "JetBrains Mono Nerd Font" 8
  106. # The spacing between lines. If the height is smaller than the
  107. # font height, it will get raised to the font height.
  108. line_height = 0
  109. # Possible values are:
  110. # full: Allow a small subset of html markup in notifications:
  111. # <b>bold</b>
  112. # <i>italic</i>
  113. # <s>strikethrough</s>
  114. # <u>underline</u>
  115. #
  116. # For a complete reference see
  117. # <https://docs.gtk.org/Pango/pango_markup.html>.
  118. #
  119. # strip: This setting is provided for compatibility with some broken
  120. # clients that send markup even though it's not enabled on the
  121. # server. Dunst will try to strip the markup but the parsing is
  122. # simplistic so using this option outside of matching rules for
  123. # specific applications *IS GREATLY DISCOURAGED*.
  124. #
  125. # no: Disable markup parsing, incoming notifications will be treated as
  126. # plain text. Dunst will not advertise that it has the body-markup
  127. # capability if this is set as a global setting.
  128. #
  129. # It's important to note that markup inside the format option will be parsed
  130. # regardless of what this is set to.
  131. markup = full
  132. # The format of the message. Possible variables are:
  133. # %a appname
  134. # %s summary
  135. # %b body
  136. # %i iconname (including its path)
  137. # %I iconname (without its path)
  138. # %p progress value if set ([ 0%] to [100%]) or nothing
  139. # %n progress value if set without any extra characters
  140. # %% Literal %
  141. # Markup is allowed
  142. format = "<b>%s</b>\n%b"
  143. # Alignment of message text.
  144. # Possible values are "left", "center" and "right".
  145. alignment = left
  146. # Vertical alignment of message text and icon.
  147. # Possible values are "top", "center" and "bottom".
  148. vertical_alignment = center
  149. # Show age of message if message is older than show_age_threshold
  150. # seconds.
  151. # Set to -1 to disable.
  152. show_age_threshold = 60
  153. # Specify where to make an ellipsis in long lines.
  154. # Possible values are "start", "middle" and "end".
  155. ellipsize = middle
  156. # Ignore newlines '\n' in notifications.
  157. ignore_newline = no
  158. # Stack together notifications with the same content
  159. stack_duplicates = true
  160. # Hide the count of stacked notifications with the same content
  161. hide_duplicate_count = false
  162. # Display indicators for URLs (U) and actions (A).
  163. show_indicators = yes
  164. ### Icons ###
  165. # Recursive icon lookup. You can set a single theme, instead of having to
  166. # define all lookup paths.
  167. enable_recursive_icon_lookup = true
  168. # Set icon theme (only used for recursive icon lookup)
  169. icon_theme = Adwaita
  170. # You can also set multiple icon themes, with the leftmost one being used first.
  171. # icon_theme = "Adwaita, breeze"
  172. # Align icons left/right/top/off
  173. icon_position = left
  174. # Scale small icons up to this size, set to 0 to disable. Helpful
  175. # for e.g. small files or high-dpi screens. In case of conflict,
  176. # max_icon_size takes precedence over this.
  177. min_icon_size = 32
  178. # Scale larger icons down to this size, set to 0 to disable
  179. max_icon_size = 128
  180. # Paths to default icons (only necessary when not using recursive icon lookup)
  181. icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
  182. ### History ###
  183. # Should a notification popped up from history be sticky or timeout
  184. # as if it would normally do.
  185. sticky_history = yes
  186. # Maximum amount of notifications kept in history
  187. history_length = 20
  188. ### Misc/Advanced ###
  189. # dmenu path.
  190. dmenu = /usr/bin/dmenu -p dunst:
  191. # Browser for opening urls in context menu.
  192. browser = /usr/bin/xdg-open
  193. # Always run rule-defined scripts, even if the notification is suppressed
  194. always_run_script = true
  195. # Define the title of the windows spawned by dunst (X11 only)
  196. title = Dunst
  197. # Define the class of the windows spawned by dunst (X11 only)
  198. class = Dunst
  199. # Define the corner radius of the notification window
  200. # in pixel size. If the radius is 0, you have no rounded
  201. # corners.
  202. # The radius will be automatically lowered if it exceeds half of the
  203. # notification height to avoid clipping text and/or icons.
  204. corner_radius = 0
  205. # Define which corners to round when drawing the window. If the corner radius
  206. # is set to 0 this option will be ignored.
  207. #
  208. # Comma-separated list of the corners. The accepted corner values are bottom-right,
  209. # bottom-left, top-right, top-left, top, bottom, left, right or all.
  210. corners = all
  211. # Ignore the dbus closeNotification message.
  212. # Useful to enforce the timeout set by dunst configuration. Without this
  213. # parameter, an application may close the notification sent before the
  214. # user defined timeout.
  215. ignore_dbusclose = false
  216. ### Wayland ###
  217. # These settings are Wayland-specific. They have no effect when using X11
  218. # Uncomment this if you want to let notifications appear under fullscreen
  219. # applications (default: overlay)
  220. # layer = top
  221. # Set this to true to use X11 output on Wayland.
  222. force_xwayland = false
  223. ### Legacy
  224. # Use the Xinerama extension instead of RandR for multi-monitor support.
  225. # This setting is provided for compatibility with older nVidia drivers that
  226. # do not support RandR and using it on systems that support RandR is highly
  227. # discouraged.
  228. #
  229. # By enabling this setting dunst will not be able to detect when a monitor
  230. # is connected or disconnected which might break follow mode if the screen
  231. # layout changes.
  232. force_xinerama = false
  233. ### mouse
  234. # Defines list of actions for each mouse event
  235. # Possible values are:
  236. # * none: Don't do anything.
  237. # * do_action: Invoke the action determined by the action_name rule. If there is no
  238. # such action, open the context menu.
  239. # * open_url: If the notification has exactly one url, open it. If there are multiple
  240. # ones, open the context menu.
  241. # * close_current: Close current notification.
  242. # * close_all: Close all notifications.
  243. # * context: Open context menu for the notification.
  244. # * context_all: Open context menu for all notifications.
  245. # These values can be strung together for each mouse event, and
  246. # will be executed in sequence.
  247. mouse_left_click = close_current
  248. mouse_middle_click = do_action, close_current
  249. mouse_right_click = close_all
  250. # Experimental features that may or may not work correctly. Do not expect them
  251. # to have a consistent behaviour across releases.
  252. [experimental]
  253. # Calculate the dpi to use on a per-monitor basis.
  254. # If this setting is enabled the Xft.dpi value will be ignored and instead
  255. # dunst will attempt to calculate an appropriate dpi value for each monitor
  256. # using the resolution and physical size. This might be useful in setups
  257. # where there are multiple screens with very different dpi values.
  258. per_monitor_dpi = false
  259. [urgency_low]
  260. # IMPORTANT: colors have to be defined in quotation marks.
  261. # Otherwise the "#" and following would be interpreted as a comment.
  262. background = "#1A1A22"
  263. foreground = "#c8c093"
  264. timeout = 10
  265. # Icon for notifications with low urgency, uncomment to enable
  266. #default_icon = /path/to/icon
  267. [urgency_normal]
  268. background = "#938AA9"
  269. foreground = "#1A1A22"
  270. timeout = 10
  271. override_pause_level = 30
  272. # Icon for notifications with normal urgency, uncomment to enable
  273. #default_icon = /path/to/icon
  274. [urgency_critical]
  275. background = "#900000"
  276. foreground = "#ffffff"
  277. frame_color = "#ff0000"
  278. timeout = 0
  279. override_pause_level = 60
  280. # Icon for notifications with critical urgency, uncomment to enable
  281. #default_icon = /path/to/icon
  282. # Every section that isn't one of the above is interpreted as a rules to
  283. # override settings for certain messages.
  284. #
  285. # Messages can be matched by
  286. # appname (discouraged, see desktop_entry)
  287. # body
  288. # category
  289. # desktop_entry
  290. # icon
  291. # match_transient
  292. # msg_urgency
  293. # stack_tag
  294. # summary
  295. #
  296. # and you can override the
  297. # background
  298. # foreground
  299. # format
  300. # frame_color
  301. # fullscreen
  302. # new_icon
  303. # set_stack_tag
  304. # set_transient
  305. # set_category
  306. # timeout
  307. # urgency
  308. # icon_position
  309. # skip_display
  310. # history_ignore
  311. # action_name
  312. # word_wrap
  313. # ellipsize
  314. # alignment
  315. # hide_text
  316. # override_pause_level
  317. #
  318. # Shell-like globbing will get expanded.
  319. #
  320. # Instead of the appname filter, it's recommended to use the desktop_entry filter.
  321. # GLib based applications export their desktop-entry name. In comparison to the appname,
  322. # the desktop-entry won't get localized.
  323. #
  324. # You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level.
  325. # 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:
  326. # override_pause_level = X
  327. # SCRIPTING
  328. # You can specify a script that gets run when the rule matches by
  329. # setting the "script" option.
  330. # The script will be called as follows:
  331. # script appname summary body icon urgency
  332. # where urgency can be "LOW", "NORMAL" or "CRITICAL".
  333. #
  334. # NOTE: It might be helpful to run dunst -print in a terminal in order
  335. # to find fitting options for rules.
  336. # Disable the transient hint so that idle_threshold cannot be bypassed from the
  337. # client
  338. #[transient_disable]
  339. # match_transient = yes
  340. # set_transient = no
  341. #
  342. # Make the handling of transient notifications more strict by making them not
  343. # be placed in history.
  344. #[transient_history_ignore]
  345. # match_transient = yes
  346. # history_ignore = yes
  347. # fullscreen values
  348. # show: show the notifications, regardless if there is a fullscreen window opened
  349. # delay: displays the new notification, if there is no fullscreen window active
  350. # If the notification is already drawn, it won't get undrawn.
  351. # pushback: same as delay, but when switching into fullscreen, the notification will get
  352. # withdrawn from screen again and will get delayed like a new notification
  353. #[fullscreen_delay_everything]
  354. # fullscreen = delay
  355. #[fullscreen_show_critical]
  356. # msg_urgency = critical
  357. # fullscreen = show
  358. #[espeak]
  359. # summary = "*"
  360. # script = dunst_espeak.sh
  361. #[script-test]
  362. # summary = "*script*"
  363. # script = dunst_test.sh
  364. #[ignore]
  365. # # This notification will not be displayed
  366. # summary = "foobar"
  367. # skip_display = true
  368. #[history-ignore]
  369. # # This notification will not be saved in history
  370. # summary = "foobar"
  371. # history_ignore = yes
  372. #[skip-display]
  373. # # This notification will not be displayed, but will be included in the history
  374. # summary = "foobar"
  375. # skip_display = yes
  376. #[signed_on]
  377. # appname = Pidgin
  378. # summary = "*signed on*"
  379. # urgency = low
  380. #
  381. #[signed_off]
  382. # appname = Pidgin
  383. # summary = *signed off*
  384. # urgency = low
  385. #
  386. #[says]
  387. # appname = Pidgin
  388. # summary = *says*
  389. # urgency = critical
  390. #
  391. #[twitter]
  392. # appname = Pidgin
  393. # summary = *twitter.com*
  394. # urgency = normal
  395. #
  396. #[stack-volumes]
  397. # appname = "some_volume_notifiers"
  398. # set_stack_tag = "volume"
  399. #
  400. # vim: ft=cfg