Ver código fonte

Add dunst config

... which I now officially started using instead of xfce4-notifyd
Alois Mahdal 10 anos atrás
pai
commit
265ed1ce6e
2 arquivos alterados com 146 adições e 0 exclusões
  1. 145
    0
      dotfiles.config/dunst/dunstrc
  2. 1
    0
      dotfiles/i3/config

+ 145
- 0
dotfiles.config/dunst/dunstrc Ver arquivo

@@ -0,0 +1,145 @@
1
+[global]
2
+    font = Monospace 8
3
+    allow_markup = yes
4
+    format = "%a:%p <b>%s</b>\n%b"
5
+    sort = yes
6
+    indicate_hidden = yes
7
+    alignment = right
8
+    bounce_freq = 0
9
+    show_age_threshold = 60
10
+    word_wrap = yes
11
+    ignore_newline = no
12
+
13
+
14
+    # the geometry of the window
15
+    # geometry [{width}]x{height}][+/-{x}+/-{y}]
16
+    # The geometry of the message window.
17
+    # The height is measured in number of notifications everything else in pixels. If the width
18
+    # is omitted but the height is given ("-geometry x2"), the message window
19
+    # expands over the whole screen (dmenu-like). If width is 0,
20
+    # the window expands to the longest message displayed.
21
+    # A positive x is measured from the left, a negative from the
22
+    # right side of the screen.  Y is measured from the top and down respectevly.
23
+    # The width can be negative. In this case the actual width is the
24
+    # screen width minus the width defined in within the geometry option.
25
+    geometry = "300x5-30+20"
26
+
27
+    idle_threshold = 120
28
+
29
+    # Which monitor should the notifications be displayed on.
30
+    monitor = 0
31
+
32
+    # Display notification on focused monitor. Possible modes are:
33
+    # mouse: follow mouse pointer
34
+    # keyboard: follow window with keyboard focus
35
+    # none: don't follow anything
36
+    #
37
+    # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
38
+    # This should be the case for almost all modern windowmanagers.
39
+    #
40
+    # If this option is set to mouse or keyboard, the monitor option will be
41
+    # ignored.
42
+    follow = mouse
43
+
44
+    sticky_history = yes
45
+    line_height = 0
46
+    separator_height = 2
47
+    padding = 8
48
+    horizontal_padding = 8
49
+
50
+    # Define a color for the separator.
51
+    # possible values are:
52
+    #  * auto: dunst tries to find a color fitting to the background
53
+    #  * foreground: use the same color as the foreground
54
+    #  * frame: use the same color as the frame.
55
+    #  * anything else will be interpreted as a X color
56
+    separator_color = frame
57
+
58
+    # print a notification on startup
59
+    # This is mainly for error detection, since dbus (re-)starts dunst
60
+    # automatically after a crash.
61
+    startup_notification = true
62
+
63
+    # dmenu path
64
+    dmenu = /usr/bin/dmenu -p dunst:
65
+
66
+    # browser for opening urls in context menu
67
+    browser = ub
68
+
69
+[frame]
70
+    width = 3
71
+    color = "#aaaaaa"
72
+
73
+[shortcuts]
74
+    close = ctrl+space
75
+    close_all = ctrl+shift+space
76
+    history = ctrl+grave
77
+    context = ctrl+shift+period
78
+
79
+[urgency_low]
80
+    background = "#222222"
81
+    foreground = "#888888"
82
+    timeout = 10
83
+
84
+[urgency_normal]
85
+    background = "#285577"
86
+    foreground = "#ffffff"
87
+    timeout = 10
88
+
89
+[urgency_critical]
90
+    background = "#900000"
91
+    foreground = "#ffffff"
92
+    timeout = 0
93
+
94
+
95
+# Every section that isn't one of the above is interpreted as a rules
96
+# to override settings for certain messages.
97
+# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
98
+# and you can override the 'timeout', 'urgency', 'foreground', 'background'
99
+# and 'format'.
100
+# Shell-like globbing will get expanded.
101
+#
102
+# SCRIPTING
103
+# you can specify a script that gets run when the rule matches by setting
104
+# the 'script' option.
105
+# The script will be called as follows:
106
+# script appname summary body icon urgency
107
+# where urgency can be "LOW", "NORMAL" or "CRITICAL".
108
+#
109
+# NOTE: if you don't want a notification to be displayed, set the format to ""
110
+# NOTE: It might be helpful to run dunst -print in a terminal in order to find
111
+# fitting options for rules.
112
+
113
+#[espeak]
114
+#    summary = "*"
115
+#    script = dunst_espeak.sh
116
+
117
+#[script-test]
118
+#    summary = "*script*"
119
+#    script = dunst_test.sh
120
+
121
+#[ignore]
122
+## This notification will not be displayed
123
+#    summary = "foobar"
124
+#    format = ""
125
+
126
+#[signed_on]
127
+#    appname = Pidgin
128
+#    summary = "*signed on*"
129
+#    urgency = low
130
+#
131
+#[signed_off]
132
+#    appname = Pidgin
133
+#    summary = *signed off*
134
+#    urgency = low
135
+#
136
+#[says]
137
+#    appname = Pidgin
138
+#    summary = *says*
139
+#    urgency = critical
140
+#
141
+#[twitter]
142
+#    appname = Pidgin
143
+#    summary = *twitter.com*
144
+#    urgency = normal
145
+#

+ 1
- 0
dotfiles/i3/config Ver arquivo

@@ -207,6 +207,7 @@ mouse_warping none
207 207
 for_window [class="Shutter"]    floating enable
208 208
 for_window [class="Orage"]      floating enable
209 209
 
210
+exec "dunst"
210 211
 exec "owncloud"
211 212
 exec "psi"
212 213
 exec "orage"