dunstr.def 16 KB

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