dunstrc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. [global]
  2. font = Monospace 8
  3. # allow a small subset of html markup:
  4. # <b>bold</b>
  5. # <i>italic</i>
  6. # <s>strikethrough<s/>
  7. # <u>underline</u>
  8. #
  9. # for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
  10. # If markup is not allowed, those tags will be stripped out of the message.
  11. allow_markup = yes
  12. # The format of the message. Possible variables are:
  13. # %a appname
  14. # %s summary
  15. # %b body
  16. # %i iconname (including its path)
  17. # %I iconname (without its path)
  18. # %p progress value if set ([ 0%] to [100%]) or nothing
  19. # Markup is allowed
  20. format = "<b>%a:</b> %s\n%b"
  21. # Sort messages by urgency
  22. sort = yes
  23. # Show how many messages are currently hidden (because of geometry)
  24. indicate_hidden = yes
  25. # alignment of message text.
  26. # Possible values are "left", "center" and "right"
  27. alignment = left
  28. # The frequency with wich text that is longer than the notification
  29. # window allows bounces back and forth.
  30. # This option conflicts with 'word_wrap'.
  31. # Set to 0 to disable
  32. bounce_freq = 0
  33. # show age of message if message is older than show_age_threshold seconds.
  34. # set to -1 to disable
  35. show_age_threshold = 60
  36. # split notifications into multiple lines if they don't fit into geometry
  37. word_wrap = yes
  38. # ignore newlines '\n' in notifications
  39. ignore_newline = no
  40. # the geometry of the window
  41. # geometry [{width}]x{height}][+/-{x}+/-{y}]
  42. # The geometry of the message window.
  43. # The height is measured in number of notifications everything else in pixels. If the width
  44. # is omitted but the height is given ("-geometry x2"), the message window
  45. # expands over the whole screen (dmenu-like). If width is 0,
  46. # the window expands to the longest message displayed.
  47. # A positive x is measured from the left, a negative from the
  48. # right side of the screen. Y is measured from the top and down respectevly.
  49. # The width can be negative. In this case the actual width is the
  50. # screen width minus the width defined in within the geometry option.
  51. geometry = "300x5-30+20"
  52. # The transparency of the window. range: [0; 100]
  53. # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
  54. transparency = 0
  55. # Don't remove messages, if the user is idle (no mouse or keyboard input)
  56. # for longer than idle_threshold seconds.
  57. # Set to 0 to disable.
  58. idle_threshold = 120
  59. # Which monitor should the notifications be displayed on.
  60. monitor = 0
  61. # Display notification on focused monitor. Possible modes are:
  62. # mouse: follow mouse pointer
  63. # keyboard: follow window with keyboard focus
  64. # none: don't follow anything
  65. #
  66. # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
  67. # This should be the case for almost all modern windowmanagers.
  68. #
  69. # If this option is set to mouse or keyboard, the monitor option will be
  70. # ignored.
  71. follow = keyboard
  72. # should a notification popped up from history be sticky or
  73. # timeout as if it would normally do.
  74. sticky_history = yes
  75. # The height of a single line. If the height is smaller than the font height,
  76. # it will get raised to the font height.
  77. # This adds empty space above and under the text.
  78. line_height = 0
  79. # Draw a line of 'separatpr_height' pixel height between two notifications.
  80. # Set to 0 to disable
  81. separator_height = 2
  82. # padding between text and separator
  83. padding = 8
  84. # horizontal padding
  85. horizontal_padding = 8
  86. # Define a color for the separator.
  87. # possible values are:
  88. # * auto: dunst tries to find a color fitting to the background
  89. # * foreground: use the same color as the foreground
  90. # * frame: use the same color as the frame.
  91. # * anything else will be interpreted as a X color
  92. separator_color = frame
  93. # print a notification on startup
  94. # This is mainly for error detection, since dbus (re-)starts dunst
  95. # automatically after a crash.
  96. startup_notification = true
  97. # dmenu path
  98. dmenu = /usr/bin/dmenu -p dunst:
  99. # browser for opening urls in context menu
  100. browser = /usr/bin/firefox -new-tab
  101. [frame]
  102. width = 0
  103. color = "#000000"
  104. [shortcuts]
  105. # shortcuts are specified as [modifier+][modifier+]...key
  106. # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
  107. # and 'mod4' (windows-key)
  108. # xev might be helpful to find names for keys
  109. # close notification
  110. close = mod4+m
  111. # close all notifications
  112. close_all = mod4+shift+m
  113. # redisplay last message(s)
  114. #history = mod4+n
  115. # context menu
  116. context = mod4+shift+i
  117. [urgency_low]
  118. # IMPORTANT: colors have to be defined in quotation marks.
  119. # Otherwise the '#' and following would be interpreted as a comment.
  120. background = "#222222"
  121. foreground = "#888888"
  122. timeout = 10
  123. [urgency_normal]
  124. background = "#285577"
  125. foreground = "#ffffff"
  126. timeout = 10
  127. [urgency_critical]
  128. background = "#900000"
  129. foreground = "#ffffff"
  130. timeout = 0
  131. # Every section that isn't one of the above is interpreted as a rules
  132. # to override settings for certain messages.
  133. # Messages can be matched by 'appname', 'summary', 'body' or 'icon'
  134. # and you can override the 'timeout', 'urgency', 'foreground', 'background'
  135. # and 'format'.
  136. # Shell-like globbing will get expanded.
  137. #
  138. # SCRIPTING
  139. # you can specify a script that gets run when the rule matches by setting
  140. # the 'script' option.
  141. # The script will be called as follows:
  142. # script appname summary body icon urgency
  143. # where urgency can be "LOW", "NORMAL" or "CRITICAL".
  144. #
  145. # NOTE: if you don't want a notification to be displayed, set the format to ""
  146. # NOTE: It might be helpful to run dunst -print in a terminal in order to find
  147. # fitting options for rules.