dunstrc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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 = none
  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 = "600x15-30+80"
  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 = 3
  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 = "#90EE90"
  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 10
  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 = "%s\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 = -1
  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 = end
  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 = true
  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 = 100
  143. ### Misc/Advanced ###
  144. # dmenu path.
  145. dmenu = /home/oleg/.guix-profile/bin/dmenu -p dunst:
  146. # Browser for opening urls in context menu.
  147. browser = /home/oleg/.guix-profile/bin/firefox
  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. # Mouse
  159. mouse_left_click = do_action
  160. mouse_right_click = close_current
  161. ### Legacy
  162. # Use the Xinerama extension instead of RandR for multi-monitor support.
  163. # This setting is provided for compatibility with older nVidia drivers that
  164. # do not support RandR and using it on systems that support RandR is highly
  165. # discouraged.
  166. #
  167. # By enabling this setting dunst will not be able to detect when a monitor
  168. # is connected or disconnected which might break follow mode if the screen
  169. # layout changes.
  170. force_xinerama = false
  171. # Experimental features that may or may not work correctly. Do not expect them
  172. # to have a consistent behaviour across releases.
  173. [experimental]
  174. # Calculate the dpi to use on a per-monitor basis.
  175. # If this setting is enabled the Xft.dpi value will be ignored and instead
  176. # dunst will attempt to calculate an appropriate dpi value for each monitor
  177. # using the resolution and physical size. This might be useful in setups
  178. # where there are multiple screens with very different dpi values.
  179. per_monitor_dpi = false
  180. [shortcuts]
  181. # Shortcuts are specified as [modifier+][modifier+]...key
  182. # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
  183. # "mod3" and "mod4" (windows-key).
  184. # Xev might be helpful to find names for keys.
  185. # Close notification.
  186. close = ctrl+mod1+space
  187. # Close all notifications.
  188. close_all = ctrl+shift+space
  189. # Redisplay last message(s).
  190. # On the US keyboard layout "grave" is normally above TAB and left
  191. # of "1". Make sure this key actually exists on your keyboard layout,
  192. # e.g. check output of 'xmodmap -pke'
  193. history = ctrl+grave
  194. # Context menu.
  195. context = ctrl+shift+period
  196. [urgency_low]
  197. # IMPORTANT: colors have to be defined in quotation marks.
  198. # Otherwise the "#" and following would be interpreted as a comment.
  199. background = "#000000aa"
  200. foreground = "#dcdcdc"
  201. frame_color = "#000000aa"
  202. timeout = 5
  203. # Icon for notifications with low urgency, uncomment to enable
  204. #icon = /path/to/icon
  205. [urgency_normal]
  206. background = "#000000aa"
  207. foreground = "#ffffff"
  208. timeout = 10
  209. # Icon for notifications with normal urgency, uncomment to enable
  210. #icon = /path/to/icon
  211. [urgency_critical]
  212. background = "#900000aa"
  213. foreground = "#ffffff"
  214. frame_color = "#ff0000"
  215. timeout = 0
  216. # Icon for notifications with critical urgency, uncomment to enable
  217. #icon = /path/to/icon
  218. # Every section that isn't one of the above is interpreted as a rules to
  219. # override settings for certain messages.
  220. # Messages can be matched by "appname", "summary", "body", "icon", "category",
  221. # "msg_urgency" and you can override the "timeout", "urgency", "foreground",
  222. # "background", "new_icon" and "format".
  223. # Shell-like globbing will get expanded.
  224. #
  225. # SCRIPTING
  226. # You can specify a script that gets run when the rule matches by
  227. # setting the "script" option.
  228. # The script will be called as follows:
  229. # script appname summary body icon urgency
  230. # where urgency can be "LOW", "NORMAL" or "CRITICAL".
  231. #
  232. # NOTE: if you don't want a notification to be displayed, set the format
  233. # to "".
  234. # NOTE: It might be helpful to run dunst -print in a terminal in order
  235. # to find fitting options for rules.
  236. # [alerta]
  237. # body = *is live*
  238. # script = /home/oleg/bin/dunst_alerta.sh
  239. # [espeak]
  240. # summary = "*"
  241. # script = dunst_espeak.sh
  242. #[script-test]
  243. # summary = "*script*"
  244. # script = dunst_test.sh
  245. #[ignore]
  246. # # This notification will not be displayed
  247. # summary = "foobar"
  248. # format = ""
  249. #[history-ignore]
  250. # # This notification will not be saved in history
  251. # summary = "foobar"
  252. # history_ignore = yes
  253. #[signed_on]
  254. # appname = Pidgin
  255. # summary = "*signed on*"
  256. # urgency = low
  257. #
  258. #[signed_off]
  259. # appname = Pidgin
  260. # summary = *signed off*
  261. # urgency = low
  262. #
  263. #[says]
  264. # appname = Pidgin
  265. # summary = *says*
  266. # urgency = critical
  267. #
  268. #[twitter]
  269. # appname = Pidgin
  270. # summary = *twitter.com*
  271. # urgency = normal
  272. #
  273. # vim: ft=cfg