Advertisement
Dobbie03

dunstrc

Oct 21st, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.22 KB | None | 0 0
  1. [global]
  2. ### Display ###
  3.  
  4. # Which monitor should the notifications be displayed on.
  5. monitor = 1
  6. follow = none
  7.  
  8. geometry = "397x50+50+50"
  9.  
  10. indicate_hidden = yes
  11.  
  12. # Shrink window if it's smaller than the width. Will be ignored if
  13. # width is 0.
  14. shrink = no
  15. transparency = 0
  16. notification_height = 0
  17.  
  18. # Set to 0 to disable.
  19. separator_height = 1
  20.  
  21. # Padding between text and separator.
  22. padding = 15
  23.  
  24. # Horizontal padding.
  25. horizontal_padding = 8
  26.  
  27. # Set to 0 to disable.
  28. frame_width = 1
  29.  
  30. # Defines color of the frame around the notification window.
  31. #frame_color = "#5e81ac"
  32. frame_color = "#141414"
  33. separator_color = frame
  34.  
  35. # Sort messages by urgency.
  36. sort = yes
  37.  
  38. idle_threshold = 5
  39.  
  40. ### Text ###
  41.  
  42. font = San Francisco Text 9
  43.  
  44.  
  45. # The spacing between lines. If the height is smaller than the
  46. # font height, it will get raised to the font height.
  47. line_height = 0
  48. markup = full
  49.  
  50. # The format of the message. Possible variables are:
  51. # %a appname
  52. # %s summary
  53. # %b body
  54. # %i iconname (including its path)
  55. # %I iconname (without its path)
  56. # %p progress value if set ([ 0%] to [100%]) or nothing
  57. # %n progress value if set without any extra characters
  58. # %% Literal %
  59. # Markup is allowed
  60. format = "<b>%s</b>\n%b"
  61.  
  62. # Alignment of message text.
  63. # Possible values are "left", "center" and "right".
  64. alignment = left
  65.  
  66. # Show age of message if message is older than show_age_threshold
  67. # seconds.
  68. # Set to -1 to disable.
  69. show_age_threshold = -1
  70.  
  71. # Split notifications into multiple lines if they don't fit into
  72. # geometry.
  73. word_wrap = yes
  74.  
  75. # When word_wrap is set to no, specify where to make an ellipsis in long lines.
  76. # Possible values are "start", "middle" and "end".
  77. ellipsize = middle
  78.  
  79. # Ignore newlines '\n' in notifications.
  80. ignore_newline = no
  81.  
  82. # Merge multiple notifications with the same content
  83. stack_duplicates = true
  84.  
  85. # Hide the count of merged notifications with the same content
  86. hide_duplicate_count = false
  87.  
  88. # Display indicators for URLs (U) and actions (A).
  89. show_indicators = yes
  90.  
  91. ### Icons ###
  92.  
  93. # Align icons left/right/off
  94. icon_position = right
  95.  
  96. # Scale larger icons down to this size, set to 0 to disable
  97. max_icon_size = 150
  98.  
  99. # Paths to default icons.
  100. icon_path = /usr/share/icons/ArchLabs-Light/16x16/status/:/usr/share/icons/ArchLabs-Dark/16x16/devices/
  101.  
  102. ### History ###
  103.  
  104. # Should a notification popped up from history be sticky or timeout
  105. # as if it would normally do.
  106. sticky_history = yes
  107.  
  108. # Maximum amount of notifications kept in history
  109. history_length = 200
  110.  
  111. ### Misc/Advanced ###
  112.  
  113. # dmenu path.
  114. dmenu = /usr/bin/dmenu -p dunst:
  115.  
  116. # Browser for opening urls in context menu.
  117. browser = /usr/bin/firefox -new-tab
  118.  
  119. # Always run rule-defined scripts, even if the notification is suppressed
  120. always_run_script = true
  121.  
  122. # Define the title of the windows spawned by dunst
  123. title = Dunst
  124.  
  125. # Define the class of the windows spawned by dunst
  126. class = Dunst
  127.  
  128. # Print a notification on startup.
  129. # This is mainly for error detection, since dbus (re-)starts dunst
  130. # automatically after a crash.
  131. startup_notification = false
  132.  
  133. # Manage dunst's desire for talking
  134. # Can be one of the following values:
  135. # crit: Critical features. Dunst aborts
  136. # warn: Only non-fatal warnings
  137. # mesg: Important Messages
  138. # info: all unimportant stuff
  139. # debug: all less than unimportant stuff
  140. verbosity = mesg
  141.  
  142. # Define the corner radius of the notification window
  143. # in pixel size. If the radius is 0, you have no rounded
  144. # corners.
  145. # The radius will be automatically lowered if it exceeds half of the
  146. # notification height to avoid clipping text and/or icons.
  147. corner_radius = 0
  148.  
  149. ### Legacy
  150.  
  151. # Use the Xinerama extension instead of RandR for multi-monitor support.
  152. # This setting is provided for compatibility with older nVidia drivers that
  153. # do not support RandR and using it on systems that support RandR is highly
  154. # discouraged.
  155. #
  156. # By enabling this setting dunst will not be able to detect when a monitor
  157. # is connected or disconnected which might break follow mode if the screen
  158. # layout changes.
  159. force_xinerama = false
  160.  
  161. ### mouse
  162.  
  163. # Defines action of mouse event
  164. # Possible values are:
  165. # * none: Don't do anything.
  166. # * do_action: If the notification has exactly one action, or one is marked as default,
  167. # invoke it. If there are multiple and no default, open the context menu.
  168. # * close_current: Close current notification.
  169. # * close_all: Close all notifications.
  170. mouse_left_click = close_current
  171. mouse_middle_click = do_action
  172. mouse_right_click = close_all
  173.  
  174. # Experimental features that may or may not work correctly. Do not expect them
  175. # to have a consistent behaviour across releases.
  176. [experimental]
  177. # Calculate the dpi to use on a per-monitor basis.
  178. # If this setting is enabled the Xft.dpi value will be ignored and instead
  179. # dunst will attempt to calculate an appropriate dpi value for each monitor
  180. # using the resolution and physical size. This might be useful in setups
  181. # where there are multiple screens with very different dpi values.
  182. per_monitor_dpi = 192
  183.  
  184. [shortcuts]
  185.  
  186. # Shortcuts are specified as [modifier+][modifier+]...key
  187. # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
  188. # "mod3" and "mod4" (windows-key).
  189. # Xev might be helpful to find names for keys.
  190.  
  191. # Close notification.
  192. close = ctrl+alt+space
  193.  
  194. # Close all notifications.
  195. close_all = ctrl+shift+space
  196.  
  197. # Redisplay last message(s).
  198. # On the US keyboard layout "grave" is normally above TAB and left
  199. # of "1". Make sure this key actually exists on your keyboard layout,
  200. # e.g. check output of 'xmodmap -pke'
  201. history = ctrl+grave
  202.  
  203. # Context menu.
  204. context = ctrl+shift+period
  205.  
  206. [urgency_low]
  207. # IMPORTANT: colors have to be defined in quotation marks.
  208. # Otherwise the "#" and following would be interpreted as a comment.
  209. background = "#252525"
  210. foreground = "#c6c6c6"
  211. timeout = 10
  212. # Icon for notifications with low urgency, uncomment to enable
  213. #icon = /path/to/icon
  214.  
  215. [urgency_normal]
  216. background = "#252525"
  217. foreground = "#c0c0c0"
  218. timeout = 10
  219. # Icon for notifications with normal urgency, uncomment to enable
  220. #icon = /path/to/icon
  221.  
  222. [urgency_critical]
  223. background = "#252525"
  224. foreground = "#c0c0c0"
  225. frame_color = "#c0c0c07"
  226. timeout = 0
  227. # Icon for notifications with critical urgency, uncomment to enable
  228. icon = ~/.config/dunst/icons/alert.svg
  229.  
  230. # Every section that isn't one of the above is interpreted as a rules to
  231. # override settings for certain messages.
  232. # Messages can be matched by "appname", "summary", "body", "icon", "category",
  233. # "msg_urgency" and you can override the "timeout", "urgency", "foreground",
  234. # "background", "frame_color", "new_icon" and "format", "fullscreen".
  235. # Shell-like globbing will get expanded.
  236. #
  237. # SCRIPTING
  238. # You can specify a script that gets run when the rule matches by
  239. # setting the "script" option.
  240. # The script will be called as follows:
  241. # script appname summary body icon urgency
  242. # where urgency can be "LOW", "NORMAL" or "CRITICAL".
  243. #
  244. # NOTE: if you don't want a notification to be displayed, set the format
  245. # to "".
  246. # NOTE: It might be helpful to run dunst -print in a terminal in order
  247. # to find fitting options for rules.
  248.  
  249. # fullscreen values
  250. # show: show the notifications, regardless if there is a fullscreen window opened
  251. # delay: displays the new notification, if there is no fullscreen window active
  252. # If the notification is already drawn, it won't get undrawn.
  253. # pushback: same as delay, but when switching into fullscreen, the notification will get
  254. # withdrawn from screen again and will get delayed like a new notification
  255.  
  256. #[fullscreen_delay_everything]
  257. # fullscreen = delay
  258. #[fullscreen_show_critical]
  259. # msg_urgency = critical
  260. # fullscreen = show
  261. [MPD]
  262. appname = mpd
  263. format = " MPD\n\n %s\n %b"
  264. timeout = 5
  265.  
  266. [NCMPCPP]
  267. appname = ncmpcpp
  268. format = " Mopidy:\n%s\n%b"
  269. timeout = 5
  270. #[espeak]
  271. # summary = "*"
  272. # script = dunst_espeak.sh
  273.  
  274. #[script-test]
  275. # summary = "*script*"
  276. # script = dunst_test.sh
  277.  
  278. #[ignore]
  279. # # This notification will not be displayed
  280. # summary = "foobar"
  281. # format = ""
  282.  
  283. #[history-ignore]
  284. # # This notification will not be saved in history
  285. # summary = "foobar"
  286. # history_ignore = yes
  287.  
  288. #[signed_on]
  289. # appname = Pidgin
  290. # summary = "*signed on*"
  291. # urgency = low
  292. #
  293. #[signed_off]
  294. # appname = Pidgin
  295. # summary = *signed off*
  296. # urgency = low
  297. #
  298. #[says]
  299. # appname = Pidgin
  300. # summary = *says*
  301. # urgency = critical
  302. #
  303. #[twitter]
  304. # appname = Pidgin
  305. # summary = *twitter.com*
  306. # urgency = normal
  307. #
  308. # vim: ft=cfg
  309.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement