Advertisement
lmariscal

dunstrc

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