Przeglądaj źródła

~/.config/dunst: Make notifications prettier

Lu Stadler 7 lat temu
rodzic
commit
9a69c9c8ae
1 zmienionych plików z 197 dodań i 0 usunięć
  1. 197 0
      .config/dunst/dunstrc

+ 197 - 0
.config/dunst/dunstrc

@ -0,0 +1,197 @@
1
[global]
2
    font = Fantasque Sans Mono Regular 10
3
4
    allow_markup = yes     # see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
5
6
    # The format of the message. Possible variables are:
7
    #   %a  appname
8
    #   %s  summary
9
    #   %b  body
10
    #   %i  iconname (including its path)
11
    #   %I  iconname (without its path)
12
    #   %p  progress value if set ([  0%] to [100%]) or nothing
13
    # Markup is allowed
14
    format = "<b>%s</b>\n%b"
15
16
    # Sort messages by urgency
17
    sort = yes
18
19
    # Show how many messages are currently hidden (because of geometry)
20
    indicate_hidden = yes
21
22
    # alignment of message text. ("left", "center" and "right")
23
    alignment = left
24
25
    bounce_freq = 0
26
27
    # show age of message if message is older than show_age_threshold seconds.
28
    # set to -1 to disable
29
    show_age_threshold = 60
30
31
    # split notifications into multiple lines if they don't fit into geometry
32
    word_wrap = yes
33
34
    # ignore newlines '\n' in notifications
35
    ignore_newline = no
36
37
    # the geometry of the window
38
    # geometry [{width}]x{height}][+/-{x}+/-{y}]
39
    # The geometry of the message window.
40
    # The height is measured in number of notifications everything else in pixels. If the width
41
    # is omitted but the height is given ("-geometry x2"), the message window
42
    # expands over the whole screen (dmenu-like). If width is 0,
43
    # the window expands to the longest message displayed.
44
    # A positive x is measured from the left, a negative from the
45
    # right side of the screen.  Y is measured from the top and down respectevly.
46
    # The width can be negative. In this case the actual width is the
47
    # screen width minus the width defined in within the geometry option.
48
    geometry = "300x5-0+15"
49
50
    # The transparency of the window. range: [0; 100]
51
    # This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
52
    transparency = 0
53
54
    # Don't remove messages, if the user is idle (no mouse or keyboard input)
55
    # for longer than idle_threshold seconds.
56
    # Set to 0 to disable.
57
    idle_threshold = 120
58
59
    # Which monitor should the notifications be displayed on.
60
    monitor = 0
61
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
74
    # should a notification popped up from history be sticky or
75
    # timeout as if it would normally do.
76
    sticky_history = yes
77
78
    # The height of a single line. If the height is smaller than the font height,
79
    # it will get raised to the font height.
80
    # This adds empty space above and under the text.
81
    line_height = 0
82
83
    # Draw a line of 'separatpr_height' pixel height between two notifications.
84
    # Set to 0 to disable
85
    separator_height = 2
86
87
    # padding between text and separator
88
    padding = 8
89
90
    # horizontal padding
91
    horizontal_padding = 8
92
93
    # Define a color for the separator.
94
    # possible values are:
95
    #  * auto: dunst tries to find a color fitting to the background
96
    #  * foreground: use the same color as the foreground
97
    #  * frame: use the same color as the frame.
98
    #  * anything else will be interpreted as a X color
99
    separator_color = frame
100
101
    # print a notification on startup
102
    # This is mainly for error detection, since dbus (re-)starts dunst
103
    # automatically after a crash.
104
    startup_notification = false
105
106
    # dmenu path
107
    dmenu = /usr/bin/dmenu -p dunst:
108
109
    # browser for opening urls in context menu
110
    browser = /usr/bin/firefox -new-tab
111
112
[frame]
113
    width = 3
114
    color = "#aaaaaa"
115
116
[shortcuts]
117
    # shortcuts are specified as [modifier+][modifier+]...key
118
    # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
119
    # and 'mod4' (windows-key)
120
    # xev might be helpful to find names for keys
121
122
    # close notification
123
    close = ctrl+space
124
125
    # close all notifications
126
    close_all = ctrl+shift+space
127
128
    # redisplay last message(s)
129
    # On the US keyboard layout 'grave' is normally above TAB and left of '1'.
130
    history = ctrl+grave
131
132
    # context menu
133
    context = ctrl+shift+period
134
135
[urgency_low]
136
    background = "#222222"
137
    foreground = "#888888"
138
    timeout = 5
139
140
[urgency_normal]
141
    background = "#285577"
142
    foreground = "#ffffff"
143
    timeout = 5
144
145
[urgency_critical]
146
    background = "#900000"
147
    foreground = "#ffffff"
148
    timeout = 0
149
150
# Every section that isn't one of the above is interpreted as a rules
151
# to override settings for certain messages.
152
# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
153
# and you can override the 'timeout', 'urgency', 'foreground', 'background'
154
# and 'format'.
155
# Shell-like globbing will get expanded.
156
#
157
# SCRIPTING
158
# you can specify a script that gets run when the rule matches by setting
159
# the 'script' option.
160
# The script will be called as follows:
161
# script appname summary body icon urgency
162
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
163
#
164
165
#[espeak]
166
#    summary = "*"
167
#    script = dunst_espeak.sh
168
169
#[script-test]
170
#    summary = "*script*"
171
#    script = dunst_test.sh
172
173
#[ignore]
174
## This notification will not be displayed
175
#    summary = "foobar"
176
#    format = ""
177
178
#[signed_on]
179
#    appname = Pidgin
180
#    summary = "*signed on*"
181
#    urgency = low
182
#
183
#[signed_off]
184
#    appname = Pidgin
185
#    summary = *signed off*
186
#    urgency = low
187
#
188
#[says]
189
#    appname = Pidgin
190
#    summary = *says*
191
#    urgency = critical
192
#
193
#[twitter]
194
#    appname = Pidgin
195
#    summary = *twitter.com*
196
#    urgency = normal
197
#