dunstrc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. [global]
  2. ### Display ###
  3. # Which monitor should the notifications be displayed on.
  4. monitor = 0
  5. # Display notification on focused monitor. Possible modes are:
  6. # mouse: follow mouse pointer
  7. # keyboard: follow window with keyboard focus
  8. # none: don't follow anything
  9. #
  10. # "keyboard" needs a window manager that exports the
  11. # _NET_ACTIVE_WINDOW property.
  12. # This should be the case for almost all modern window managers.
  13. #
  14. # If this option is set to mouse or keyboard, the monitor option
  15. # will be ignored.
  16. follow = mouse
  17. # The geometry of the window:
  18. # [{width}]x{height}[+/-{x}+/-{y}]
  19. # The geometry of the message window.
  20. # The height is measured in number of notifications everything else
  21. # in pixels. If the width is omitted but the height is given
  22. # ("-geometry x2"), the message window expands over the whole screen
  23. # (dmenu-like). If width is 0, the window expands to the longest
  24. # message displayed. A positive x is measured from the left, a
  25. # negative from the right side of the screen. Y is measured from
  26. # the top and down respectively.
  27. # The width can be negative. In this case the actual width is the
  28. # screen width minus the width defined in within the geometry option.
  29. geometry = "300x5-30+20"
  30. # Show how many messages are currently hidden (because of geometry).
  31. indicate_hidden = yes
  32. # Shrink window if it's smaller than the width. Will be ignored if
  33. # width is 0.
  34. shrink = no
  35. # The transparency of the window. Range: [0; 100].
  36. # This option will only work if a compositing window manager is
  37. # present (e.g. xcompmgr, compiz, etc.).
  38. transparency = 0
  39. # The height of the entire notification. If the height is smaller
  40. # than the font height and padding combined, it will be raised
  41. # to the font height and padding.
  42. notification_height = 0
  43. # Draw a line of "separator_height" pixel height between two
  44. # notifications.
  45. # Set to 0 to disable.
  46. separator_height = 2
  47. # Padding between text and separator.
  48. padding = 8
  49. # Horizontal padding.
  50. horizontal_padding = 8
  51. # Defines width in pixels of frame around the notification window.
  52. # Set to 0 to disable.
  53. frame_width = 3
  54. # Defines color of the frame around the notification window.
  55. frame_color = "#aaaaaa"
  56. # Define a color for the separator.
  57. # possible values are:
  58. # * auto: dunst tries to find a color fitting to the background;
  59. # * foreground: use the same color as the foreground;
  60. # * frame: use the same color as the frame;
  61. # * anything else will be interpreted as a X color.
  62. separator_color = frame
  63. # Sort messages by urgency.
  64. sort = yes
  65. # Don't remove messages, if the user is idle (no mouse or keyboard input)
  66. # for longer than idle_threshold seconds.
  67. # Set to 0 to disable.
  68. # Transient notifications ignore this setting.
  69. idle_threshold = 120
  70. ### Text ###
  71. font = Monospace 8
  72. # The spacing between lines. If the height is smaller than the
  73. # font height, it will get raised to the font height.
  74. line_height = 0
  75. # Possible values are:
  76. # full: Allow a small subset of html markup in notifications:
  77. # <b>bold</b>
  78. # <i>italic</i>
  79. # <s>strikethrough</s>
  80. # <u>underline</u>
  81. #
  82. # For a complete reference see
  83. # <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
  84. #
  85. # strip: This setting is provided for compatibility with some broken
  86. # clients that send markup even though it's not enabled on the
  87. # server. Dunst will try to strip the markup but the parsing is
  88. # simplistic so using this option outside of matching rules for
  89. # specific applications *IS GREATLY DISCOURAGED*.
  90. #
  91. # no: Disable markup parsing, incoming notifications will be treated as
  92. # plain text. Dunst will not advertise that it has the body-markup
  93. # capability if this is set as a global setting.
  94. #
  95. # It's important to note that markup inside the format option will be parsed
  96. # regardless of what this is set to.
  97. markup = full
  98. # The format of the message. Possible variables are:
  99. # %a appname
  100. # %s summary
  101. # %b body
  102. # %i iconname (including its path)
  103. # %I iconname (without its path)
  104. # %p progress value if set ([ 0%] to [100%]) or nothing
  105. # %n progress value if set without any extra characters
  106. # %% Literal %
  107. # Markup is allowed
  108. format = "<b>%s</b>\n%b"
  109. # Alignment of message text.
  110. # Possible values are "left", "center" and "right".
  111. alignment = left
  112. # Show age of message if message is older than show_age_threshold
  113. # seconds.
  114. # Set to -1 to disable.
  115. show_age_threshold = 60
  116. # Split notifications into multiple lines if they don't fit into
  117. # geometry.
  118. word_wrap = yes
  119. # When word_wrap is set to no, specify where to ellipsize long lines.
  120. # Possible values are "start", "middle" and "end".
  121. ellipsize = middle
  122. # Ignore newlines '\n' in notifications.
  123. ignore_newline = no
  124. # Merge multiple notifications with the same content
  125. stack_duplicates = true
  126. # Hide the count of merged notifications with the same content
  127. hide_duplicate_count = false
  128. # Display indicators for URLs (U) and actions (A).
  129. show_indicators = yes
  130. ### Icons ###
  131. # Align icons left/right/off
  132. icon_position = off
  133. # Scale larger icons down to this size, set to 0 to disable
  134. max_icon_size = 32
  135. # Paths to default icons.
  136. icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
  137. ### History ###
  138. # Should a notification popped up from history be sticky or timeout
  139. # as if it would normally do.
  140. sticky_history = yes
  141. # Maximum amount of notifications kept in history
  142. history_length = 20
  143. ### Misc/Advanced ###
  144. # dmenu path.
  145. dmenu = /usr/bin/dmenu -p dunst:
  146. # Browser for opening urls in context menu.
  147. browser = /usr/bin/firefox -new-tab
  148. # Always run rule-defined scripts, even if the notification is suppressed
  149. always_run_script = true
  150. # Define the title of the windows spawned by dunst
  151. title = Dunst
  152. # Define the class of the windows spawned by dunst
  153. class = Dunst
  154. # Print a notification on startup.
  155. # This is mainly for error detection, since dbus (re-)starts dunst
  156. # automatically after a crash.
  157. startup_notification = false
  158. ### Legacy
  159. # Use the Xinerama extension instead of RandR for multi-monitor support.
  160. # This setting is provided for compatibility with older nVidia drivers that
  161. # do not support RandR and using it on systems that support RandR is highly
  162. # discouraged.
  163. #
  164. # By enabling this setting dunst will not be able to detect when a monitor
  165. # is connected or disconnected which might break follow mode if the screen
  166. # layout changes.
  167. force_xinerama = false
  168. # Experimental features that may or may not work correctly. Do not expect them
  169. # to have a consistent behaviour across releases.
  170. [experimental]
  171. # Calculate the dpi to use on a per-monitor basis.
  172. # If this setting is enabled the Xft.dpi value will be ignored and instead
  173. # dunst will attempt to calculate an appropriate dpi value for each monitor
  174. # using the resolution and physical size. This might be useful in setups
  175. # where there are multiple screens with very different dpi values.
  176. per_monitor_dpi = false
  177. [shortcuts]
  178. # Shortcuts are specified as [modifier+][modifier+]...key
  179. # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
  180. # "mod3" and "mod4" (windows-key).
  181. # Xev might be helpful to find names for keys.
  182. # Close notification.
  183. close = ctrl+space
  184. # Close all notifications.
  185. close_all = ctrl+shift+space
  186. # Redisplay last message(s).
  187. # On the US keyboard layout "grave" is normally above TAB and left
  188. # of "1". Make sure this key actually exists on your keyboard layout,
  189. # e.g. check output of 'xmodmap -pke'
  190. history = ctrl+grave
  191. # Context menu.
  192. context = ctrl+shift+period
  193. [urgency_low]
  194. # IMPORTANT: colors have to be defined in quotation marks.
  195. # Otherwise the "#" and following would be interpreted as a comment.
  196. background = "#222222"
  197. foreground = "#888888"
  198. timeout = 10
  199. # Icon for notifications with low urgency, uncomment to enable
  200. #icon = /path/to/icon
  201. [urgency_normal]
  202. background = "#285577"
  203. foreground = "#ffffff"
  204. timeout = 10
  205. # Icon for notifications with normal urgency, uncomment to enable
  206. #icon = /path/to/icon
  207. [urgency_critical]
  208. background = "#900000"
  209. foreground = "#ffffff"
  210. frame_color = "#ff0000"
  211. timeout = 0
  212. # Icon for notifications with critical urgency, uncomment to enable
  213. #icon = /path/to/icon
  214. # Every section that isn't one of the above is interpreted as a rules to
  215. # override settings for certain messages.
  216. # Messages can be matched by "appname", "summary", "body", "icon", "category",
  217. # "msg_urgency" and you can override the "timeout", "urgency", "foreground",
  218. # "background", "new_icon" and "format".
  219. # Shell-like globbing will get expanded.
  220. #
  221. # SCRIPTING
  222. # You can specify a script that gets run when the rule matches by
  223. # setting the "script" option.
  224. # The script will be called as follows:
  225. # script appname summary body icon urgency
  226. # where urgency can be "LOW", "NORMAL" or "CRITICAL".
  227. #
  228. # NOTE: if you don't want a notification to be displayed, set the format
  229. # to "".
  230. # NOTE: It might be helpful to run dunst -print in a terminal in order
  231. # to find fitting options for rules.
  232. #[espeak]
  233. # summary = "*"
  234. # script = dunst_espeak.sh
  235. #[script-test]
  236. # summary = "*script*"
  237. # script = dunst_test.sh
  238. #[ignore]
  239. # # This notification will not be displayed
  240. # summary = "foobar"
  241. # format = ""
  242. #[history-ignore]
  243. # # This notification will not be saved in history
  244. # summary = "foobar"
  245. # history_ignore = yes
  246. #[signed_on]
  247. # appname = Pidgin
  248. # summary = "*signed on*"
  249. # urgency = low
  250. #
  251. #[signed_off]
  252. # appname = Pidgin
  253. # summary = *signed off*
  254. # urgency = low
  255. #
  256. #[says]
  257. # appname = Pidgin
  258. # summary = *says*
  259. # urgency = critical
  260. #
  261. #[twitter]
  262. # appname = Pidgin
  263. # summary = *twitter.com*
  264. # urgency = normal
  265. #
  266. # vim: ft=cfg