dunstrc1 14 KB

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