dunstrc 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. [global]
  2. font = Fira Code 9
  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>%s</b>\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 = center
  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. geometry = "270x20-10+33"
  53. # The transparency of the window. range: [0; 100]
  54. # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
  55. transparency = 0
  56. # Don't remove messages, if the user is idle (no mouse or keyboard input)
  57. # for longer than idle_threshold seconds.
  58. # Set to 0 to disable.
  59. idle_threshold = 999
  60. # Which monitor should the notifications be displayed on.
  61. monitor = 0
  62. # Display notification on focused monitor. Possible modes are:
  63. # mouse: follow mouse pointer
  64. # keyboard: follow window with keyboard focus
  65. # none: don't follow anything
  66. #
  67. # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
  68. # This should be the case for almost all modern windowmanagers.
  69. #
  70. # If this option is set to mouse or keyboard, the monitor option will be
  71. # ignored.
  72. follow = mouse
  73. # should a notification popped up from history be sticky or
  74. # timeout as if it would normally do.
  75. #sticky_history = no
  76. # The height of a single line. If the height is smaller than the font height,
  77. # it will get raised to the font height.
  78. # This adds empty space above and under the text.
  79. line_height = 0
  80. # Draw a line of 'separatpr_height' pixel height between two notifications.
  81. # Set to 0 to disable
  82. separator_height = 2
  83. # padding between text and separator>
  84. padding = 16
  85. # horizontal padding
  86. horizontal_padding = 2
  87. # Define a color for the separator.
  88. # possible values are:
  89. # * auto: dunst tries to find a color fitting to the background
  90. # * foreground: use the same color as the foreground
  91. # * frame: use the same color as the frame.
  92. # * anything else will be interpreted as a X color
  93. separator_color = auto
  94. # print a notification on startup
  95. # This is mainly for error detection, since dbus (re-)starts dunst
  96. # automatically after a crash.
  97. startup_notification = false
  98. # dmenu path
  99. dmenu = /usr/bin/dmenu -p dunst:
  100. # browser for opening urls in context menu
  101. browser = /usr/bin/firefox -new-tab
  102. [frame]
  103. width = 0
  104. color = "#FFFFFF"
  105. [shortcuts]
  106. # shortcuts are specified as [modifier+][modifier+]...key
  107. # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
  108. # and 'mod4' (windows-key)
  109. # xev might be helpful to find names for keys
  110. # close notification
  111. close = ctrl+space
  112. # close all notifications
  113. close_all = ctrl+shift+space
  114. # redisplay last message(s)
  115. # On the US keyboard layout 'grave' is normally above TAB and left of '1'.
  116. history = ctrl+grave
  117. # context menu
  118. context = ctrl+shift+period
  119. [urgency_low]
  120. # IMPORTANT: colors have to be defined in quotation marks.
  121. # Otherwise the '#' and following would be interpreted as a comment.
  122. background = "#002b36"
  123. foreground = "#839496"
  124. timeout = 5
  125. [urgency_normal]
  126. background = "#002b36"
  127. foreground = "#839496"
  128. timeout = 5
  129. [urgency_critical]
  130. background = "#D8E0E3"
  131. foreground = "#412F27"
  132. timeout = 5
  133. # Every section that isn't one of the above is interpreted as a rules
  134. # to override settings for certain messages.
  135. # Messages can be matched by 'appname', 'summary', 'body' or 'icon'
  136. # and you can override the 'timeout', 'urgency', 'foreground', 'background'
  137. # and 'format'.
  138. # Shell-like globbing will get expanded.
  139. #
  140. # SCRIPTING
  141. # you can specify a script that gets run when the rule matches by setting
  142. # the 'script' option.
  143. # The script will be called as follows:
  144. # script appname summary body icon urgency
  145. # where urgency can be "LOW", "NORMAL" or "CRITICAL".
  146. #
  147. # NOTE: if you don't want a notification to be displayed, set the format to ""
  148. # NOTE: It might be helpful to run dunst -print in a terminal in order to find
  149. # fitting options for rules.
  150. #[espeak]
  151. summary = "*"
  152. script = dunst_espeak.sh
  153. #[script-test]
  154. # summary = "*script*"
  155. # script = dunst_test.sh
  156. #[ignore]
  157. ## This notification will not be displayed
  158. # summary = "foobar"
  159. # format = ""
  160. #[signed_on]
  161. # appname = Pidgin
  162. # summary = "*signed on*"
  163. # urgency = low
  164. #
  165. #[signed_off]
  166. # appname = Pidgin
  167. # summary = *signed off*
  168. # urgency = low
  169. #
  170. #[says]
  171. # appname = Pidgin
  172. # summary = *says*
  173. # urgency = critical
  174. #
  175. #[twitter]
  176. # appname = Pidgin
  177. # summary = *twitter.com*
  178. # urgency = normal
  179. #
  180. [play_sound]
  181. summary = "*"
  182. script = ~/.config/dunst/notification.sh