Advertisement
Red-ex

dunstrc

May 25th, 2018
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.76 KB | None | 0 0
  1. [global]
  2.     # Screenshot: https://i.imgur.com/zlzLMgP.png
  3.     # font = Monospace 10
  4.     font = Ubuntu Mono 11
  5.  
  6.     # allow a small subset of html markup:
  7.     # <b>bold</b>
  8.     # <i>italic</i>
  9.     # <s>strikethrough<s/>
  10.     # <u>underline</u>
  11.     #
  12.     # for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
  13.     # If markup is not allowed, those tags will be stripped out of the message.
  14.     allow_markup = yes
  15.  
  16.     # The format of the message. Possible variables are:
  17.     #   %a  appname
  18.     #   %s  summary
  19.     #   %b  body
  20.     #   %i  iconname (including its path)
  21.     #   %I  iconname (without its path)
  22.     #   %p  progress value if set ([  0%] to [100%]) or nothing
  23.     # Markup is allowed
  24.     format = "<b>%a</b>\n %s\n%b"
  25.  
  26.     # Sort messages by urgency
  27.     sort = yes
  28.  
  29.     # Show how many messages are currently hidden (because of geometry)
  30.     indicate_hidden = yes
  31.  
  32.     # alignment of message text.
  33.     # Possible values are "left", "center" and "right"
  34.     alignment = center
  35.  
  36.     # The frequency with wich text that is longer than the notification
  37.     # window allows bounces back and forth.
  38.     # This option conflicts with 'word_wrap'.
  39.     # Set to 0 to disable
  40.     bounce_freq = 0
  41.  
  42.     # show age of message if message is older than show_age_threshold seconds.
  43.     # set to -1 to disable
  44.     show_age_threshold = 60
  45.  
  46.     # split notifications into multiple lines if they don't fit into geometry
  47.     word_wrap = yes
  48.  
  49.     # ignore newlines '\n' in notifications
  50.     ignore_newline = no
  51.  
  52.  
  53.     # the geometry of the window
  54.     # geometry [{width}]x{height}][+/-{x}+/-{y}]
  55.     # The geometry of the message window.
  56.     # The height is measured in number of notifications everything else in pixels. If the width
  57.     # is omitted but the height is given ("-geometry x2"), the message window
  58.     # expands over the whole screen (dmenu-like). If width is 0,
  59.     # the window expands to the longest message displayed.
  60.     # A positive x is measured from the left, a negative from the
  61.     # right side of the screen.  Y is measured from the top and down respectevly.
  62.     # The width can be negative. In this case the actual width is the
  63.     # screen width minus the width defined in within the geometry option.
  64.     geometry = "300x10-30+55"
  65.  
  66.     # The transparency of the window. range: [0; 100]
  67.     # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
  68.     transparency = 20
  69.  
  70.     # Don't remove messages, if the user is idle (no mouse or keyboard input)
  71.     # for longer than idle_threshold seconds.
  72.     # Set to 0 to disable.
  73.     idle_threshold = 120
  74.  
  75.     # Which monitor should the notifications be displayed on.
  76.     monitor = 0
  77.  
  78.     # Display notification on focused monitor. Possible modes are:
  79.     # mouse: follow mouse pointer
  80.     # keyboard: follow window with keyboard focus
  81.     # none: don't follow anything
  82.     #
  83.     # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
  84.     # This should be the case for almost all modern windowmanagers.
  85.     #
  86.     # If this option is set to mouse or keyboard, the monitor option will be
  87.     # ignored.
  88.     follow = keyboard
  89.  
  90.     # should a notification popped up from history be sticky or
  91.     # timeout as if it would normally do.
  92.     sticky_history = yes
  93.  
  94.     # The height of a single line. If the height is smaller than the font height,
  95.     # it will get raised to the font height.
  96.     # This adds empty space above and under the text.
  97.     line_height = 0
  98.  
  99.     # Draw a line of 'separatpr_height' pixel height between two notifications.
  100.     # Set to 0 to disable
  101.     separator_height = 2
  102.  
  103.     # padding between text and separator
  104.     padding = 8
  105.  
  106.     # horizontal padding
  107.     horizontal_padding = 8
  108.  
  109.     # Define a color for the separator.
  110.     # possible values are:
  111.     #  * auto: dunst tries to find a color fitting to the background
  112.     #  * foreground: use the same color as the foreground
  113.     #  * frame: use the same color as the frame.
  114.     #  * anything else will be interpreted as a X color
  115.     separator_color = frame
  116.  
  117.     # print a notification on startup
  118.     # This is mainly for error detection, since dbus (re-)starts dunst
  119.     # automatically after a crash.
  120.     startup_notification = true
  121.  
  122.     # dmenu path
  123.     dmenu = /usr/bin/dmenu -p dunst:
  124.  
  125.     # browser for opening urls in context menu
  126.     browser = /usr/bin/firefox -new-tab
  127.  
  128. [frame]
  129.     width = 0
  130.     color = "#000000"
  131.  
  132. [shortcuts]
  133.     # shortcuts are specified as [modifier+][modifier+]...key
  134.     # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
  135.     # and 'mod4' (windows-key)
  136.     # xev might be helpful to find names for keys
  137.  
  138.     # close notification
  139.     close = mod4+m
  140.  
  141.     # close all notifications
  142.     close_all = mod4+shift+m
  143.  
  144.     # redisplay last message(s)
  145.     history = mod4+n
  146.  
  147.     # context menu
  148.     context = mod4+shift+i
  149.  
  150. [urgency_low]
  151.     # IMPORTANT: colors have to be defined in quotation marks.
  152.     # Otherwise the '#' and following  would be interpreted as a comment.
  153.     background = "#222222"
  154.     foreground = "#888888"
  155.     timeout = 10
  156.  
  157. [urgency_normal]
  158.     background = "#285577"
  159.     foreground = "#ffffff"
  160.     timeout = 10
  161.  
  162. [urgency_critical]
  163.     background = "#900000"
  164.     foreground = "#ffffff"
  165.     timeout = 0
  166.  
  167.  
  168. # Every section that isn't one of the above is interpreted as a rules
  169. # to override settings for certain messages.
  170. # Messages can be matched by 'appname', 'summary', 'body' or 'icon'
  171. # and you can override the 'timeout', 'urgency', 'foreground', 'background'
  172. # and 'format'.
  173. # Shell-like globbing will get expanded.
  174. #
  175. # SCRIPTING
  176. # you can specify a script that gets run when the rule matches by setting
  177. # the 'script' option.
  178. # The script will be called as follows:
  179. # script appname summary body icon urgency
  180. # where urgency can be "LOW", "NORMAL" or "CRITICAL".
  181. #
  182. # NOTE: if you don't want a notification to be displayed, set the format to ""
  183. # NOTE: It might be helpful to run dunst -print in a terminal in order to find
  184. # fitting options for rules.
  185.  
  186. #[espeak]
  187. #    summary = "*"
  188. #    script = dunst_espeak.sh
  189.  
  190. #[script-test]
  191. #    summary = "*script*"
  192. #    script = dunst_test.sh
  193.  
  194. #[ignore]
  195. ## This notification will not be displayed
  196. #    summary = "foobar"
  197. #    format = ""
  198.  
  199. [signed_on]
  200.     appname = Pidgin
  201.     summary = "*signed on*"
  202.     urgency = low
  203.  
  204. [signed_off]
  205.     appname = Pidgin
  206.     summary = *signed off*
  207.     urgency = low
  208.  
  209. [says]
  210.     appname = Pidgin
  211.     summary = *says*
  212.     urgency = critical
  213.     format  = "%s "%b""
  214.  
  215. [music]
  216.     appname = Amarok
  217.     summary = "Now playing"
  218.     urgency = low
  219.  
  220. #[twitter]
  221. #    appname = Pidgin
  222. #    summary = *twitter.com*
  223. #    urgency = normal
  224. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement