dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

dunstrc (7664B)


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