summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-10-18 09:06:58 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2022-10-18 09:06:58 +0200
commite10991a690727c050d4d36d5ec229f7f14866743 (patch)
tree943dded15cd1fa186d809b71a39a2829c9e98571
parente43f3c403ff49e87641bb6c745080760f272446f (diff)
downloaddotfiles-e10991a690727c050d4d36d5ec229f7f14866743.tar.gz
dotfiles-e10991a690727c050d4d36d5ec229f7f14866743.zip
Add Dunst config
-rw-r--r--.config/dunst/dunstrc177
-rw-r--r--Desktop.org207
2 files changed, 384 insertions, 0 deletions
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
new file mode 100644
index 0000000..b3b93b6
--- /dev/null
+++ b/.config/dunst/dunstrc
@@ -0,0 +1,177 @@
1[global]
2frame_width = 2
3frame_color = "#39bae6"
4font = sourcecodepro
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
13# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
14# If markup is not allowed, those tags will be stripped out of the
15# message.
16markup = yes
17
18# The format of the message. Possible variables are:
19# %a appname
20# %s summary
21# %b body
22# %i iconname (including its path)
23# %I iconname (without its path)
24# %p progress value if set ([ 0%] to [100%]) or nothing
25# Markup is allowed
26format = "%s %p\n%b"
27
28# Sort messages by urgency.
29sort = yes
30
31# Show how many messages are currently hidden (because of geometry).
32indicate_hidden = yes
33
34# Alignment of message text.
35# Possible values are "left", "center" and "right".
36alignment = left
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.
42bounce_freq = 5
43
44
45# Show age of message if message is older than show_age_threshold
46# seconds.
47# Set to -1 to disable.
48show_age_threshold = 60
49
50# Split notifications into multiple lines if they don't fit into
51# geometry.
52word_wrap = no
53
54# Ignore newlines '\n' in notifications.
55ignore_newline = no
56
57
58# The geometry of the window:
59# [{width}]x{height}[+/-{x}+/-{y}]
60# The geometry of the message window.
61# The height is measured in number of notifications everything else
62# in pixels. If the width is omitted but the height is given
63# ("-geometry x2"), the message window expands over the whole screen
64# (dmenu-like). If width is 0, the window expands to the longest
65# message displayed. A positive x is measured from the left, a
66# negative from the right side of the screen. Y is measured from
67# the top and down respectevly.
68# The width can be negative. In this case the actual width is the
69# screen width minus the width defined in within the geometry option.
70geometry = "500x10-10+50"
71
72# Shrink window if it's smaller than the width. Will be ignored if
73# width is 0.
74shrink = yes
75
76# The transparency of the window. Range: [0; 100].
77# This option will only work if a compositing windowmanager is
78# present (e.g. xcompmgr, compiz, etc.).
79transparency = 15
80
81# Don't remove messages, if the user is idle (no mouse or keyboard input)
82# for longer than idle_threshold seconds.
83# Set to 0 to disable.
84# default 120
85idle_threshold = 120
86
87# Which monitor should the notifications be displayed on.
88monitor = 0
89
90# Display notification on focused monitor. Possible modes are:
91# mouse: follow mouse pointer
92# keyboard: follow window with keyboard focus
93# none: don't follow anything
94#
95# "keyboard" needs a windowmanager that exports the
96# _NET_ACTIVE_WINDOW property.
97# This should be the case for almost all modern windowmanagers.
98#
99# If this option is set to mouse or keyboard, the monitor option
100# will be ignored.
101follow = mouse
102
103# Should a notification popped up from history be sticky or timeout
104# as if it would normally do.
105sticky_history = yes
106
107# Maximum amount of notifications kept in history
108history_length = 20
109
110# Display indicators for URLs (U) and actions (A).
111show_indicators = yes
112
113# The height of a single line. If the height is smaller than the
114# font height, it will get raised to the font height.
115# This adds empty space above and under the text.
116line_height = 0
117
118# Draw a line of "separator_height" pixel height between two
119# notifications.
120# Set to 0 to disable.
121separator_height = 1
122
123# Padding between text and separator.
124# padding = 8
125padding = 8
126
127# Horizontal padding.
128horizontal_padding = 10
129
130# Define a color for the separator.
131# possible values are:
132# * auto: dunst tries to find a color fitting to the background;
133# * foreground: use the same color as the foreground;
134# * frame: use the same color as the frame;
135# * anything else will be interpreted as a X color.
136separator_color = #263238
137
138# Print a notification on startup.
139# This is mainly for error detection, since dbus (re-)starts dunst
140# automatically after a crash.
141startup_notification = false
142
143# dmenu path.
144dmenu = /usr/bin/dmenu -p dunst:
145
146# Browser for opening urls in context menu.
147browser = palemoon
148
149# Align icons left/right/off
150icon_position = left
151
152# Limit icons size.
153max_icon_size=128
154
155[urgency_low]
156# IMPORTANT: colors have to be defined in quotation marks.
157# Otherwise the "#" and following would be interpreted as a comment.
158background "#0d1017"
159foreground = "#888888"
160timeout = 10
161# Icon for notifications with low urgency, uncomment to enable
162#icon = /path/to/icon
163
164[urgency_normal]
165background = "#1e2128"
166foreground = "#ffffff"
167timeout = 10
168# Icon for notifications with normal urgency, uncomment to enable
169#icon = /path/to/icon
170
171[urgency_critical]
172background = "#900000"
173foreground = "#ffffff"
174frame_color = "#ff0000"
175timeout = 0
176# Icon for notifications with critical urgency, uncomment to enable
177#icon = /path/to/icon
diff --git a/Desktop.org b/Desktop.org
index 558c270..d1a9188 100644
--- a/Desktop.org
+++ b/Desktop.org
@@ -138,3 +138,210 @@
138 138
139#+end_src 139#+end_src
140 140
141* Dunst
142*Dunst keybinds in Emacs*
143
144#+begin_src emacs-lisp
145
146 (defun jd/dunst-show-history ()
147 (interactive)
148 (start-process-shell-command "dunstctl" nil "dunstctl history-pop"))
149
150 (defun jd/dunst-close ()
151 (interactive)
152 (start-process-shell-command "dunstctl" nil "dunstctl close"))
153
154 (defun jd/dunst-close-all ()
155 (interactive)
156 (start-process-shell-command "dunstctl" nil "dunstctl close-all"))
157
158 (jd/leader-key-def
159 "d" '(nil :which-key "dunst")
160 "dh" '(jd/dunst-show-history :which-key "show history")
161 "dc" '(jd/dunst-close :which-key "close")
162 "da" '(jd/dunst-close-all :which-key "close all"))
163
164#+end_src
165
166*dunstrc*
167
168#+begin_src conf :tangle .config/dunst/dunstrc
169
170 [global]
171 frame_width = 2
172 frame_color = "#39bae6"
173 font = sourcecodepro
174
175 # Allow a small subset of html markup:
176 # <b>bold</b>
177 # <i>italic</i>
178 # <s>strikethrough</s>
179 # <u>underline</u>
180 #
181 # For a complete reference see
182 # <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
183 # If markup is not allowed, those tags will be stripped out of the
184 # message.
185 markup = yes
186
187 # The format of the message. Possible variables are:
188 # %a appname
189 # %s summary
190 # %b body
191 # %i iconname (including its path)
192 # %I iconname (without its path)
193 # %p progress value if set ([ 0%] to [100%]) or nothing
194 # Markup is allowed
195 format = "%s %p\n%b"
196
197 # Sort messages by urgency.
198 sort = yes
199
200 # Show how many messages are currently hidden (because of geometry).
201 indicate_hidden = yes
202
203 # Alignment of message text.
204 # Possible values are "left", "center" and "right".
205 alignment = left
206
207 # The frequency with wich text that is longer than the notification
208 # window allows bounces back and forth.
209 # This option conflicts with "word_wrap".
210 # Set to 0 to disable.
211 bounce_freq = 5
212
213
214 # Show age of message if message is older than show_age_threshold
215 # seconds.
216 # Set to -1 to disable.
217 show_age_threshold = 60
218
219 # Split notifications into multiple lines if they don't fit into
220 # geometry.
221 word_wrap = no
222
223 # Ignore newlines '\n' in notifications.
224 ignore_newline = no
225
226
227 # The geometry of the window:
228 # [{width}]x{height}[+/-{x}+/-{y}]
229 # The geometry of the message window.
230 # The height is measured in number of notifications everything else
231 # in pixels. If the width is omitted but the height is given
232 # ("-geometry x2"), the message window expands over the whole screen
233 # (dmenu-like). If width is 0, the window expands to the longest
234 # message displayed. A positive x is measured from the left, a
235 # negative from the right side of the screen. Y is measured from
236 # the top and down respectevly.
237 # The width can be negative. In this case the actual width is the
238 # screen width minus the width defined in within the geometry option.
239 geometry = "500x10-10+50"
240
241 # Shrink window if it's smaller than the width. Will be ignored if
242 # width is 0.
243 shrink = yes
244
245 # The transparency of the window. Range: [0; 100].
246 # This option will only work if a compositing windowmanager is
247 # present (e.g. xcompmgr, compiz, etc.).
248 transparency = 15
249
250 # Don't remove messages, if the user is idle (no mouse or keyboard input)
251 # for longer than idle_threshold seconds.
252 # Set to 0 to disable.
253 # default 120
254 idle_threshold = 120
255
256 # Which monitor should the notifications be displayed on.
257 monitor = 0
258
259 # Display notification on focused monitor. Possible modes are:
260 # mouse: follow mouse pointer
261 # keyboard: follow window with keyboard focus
262 # none: don't follow anything
263 #
264 # "keyboard" needs a windowmanager that exports the
265 # _NET_ACTIVE_WINDOW property.
266 # This should be the case for almost all modern windowmanagers.
267 #
268 # If this option is set to mouse or keyboard, the monitor option
269 # will be ignored.
270 follow = mouse
271
272 # Should a notification popped up from history be sticky or timeout
273 # as if it would normally do.
274 sticky_history = yes
275
276 # Maximum amount of notifications kept in history
277 history_length = 20
278
279 # Display indicators for URLs (U) and actions (A).
280 show_indicators = yes
281
282 # The height of a single line. If the height is smaller than the
283 # font height, it will get raised to the font height.
284 # This adds empty space above and under the text.
285 line_height = 0
286
287 # Draw a line of "separator_height" pixel height between two
288 # notifications.
289 # Set to 0 to disable.
290 separator_height = 1
291
292 # Padding between text and separator.
293 # padding = 8
294 padding = 8
295
296 # Horizontal padding.
297 horizontal_padding = 10
298
299 # Define a color for the separator.
300 # possible values are:
301 # * auto: dunst tries to find a color fitting to the background;
302 # * foreground: use the same color as the foreground;
303 # * frame: use the same color as the frame;
304 # * anything else will be interpreted as a X color.
305 separator_color = #263238
306
307 # Print a notification on startup.
308 # This is mainly for error detection, since dbus (re-)starts dunst
309 # automatically after a crash.
310 startup_notification = false
311
312 # dmenu path.
313 dmenu = /usr/bin/dmenu -p dunst:
314
315 # Browser for opening urls in context menu.
316 browser = palemoon
317
318 # Align icons left/right/off
319 icon_position = left
320
321 # Limit icons size.
322 max_icon_size=128
323
324 [urgency_low]
325 # IMPORTANT: colors have to be defined in quotation marks.
326 # Otherwise the "#" and following would be interpreted as a comment.
327 background "#0d1017"
328 foreground = "#888888"
329 timeout = 10
330 # Icon for notifications with low urgency, uncomment to enable
331 #icon = /path/to/icon
332
333 [urgency_normal]
334 background = "#1e2128"
335 foreground = "#ffffff"
336 timeout = 10
337 # Icon for notifications with normal urgency, uncomment to enable
338 #icon = /path/to/icon
339
340 [urgency_critical]
341 background = "#900000"
342 foreground = "#ffffff"
343 frame_color = "#ff0000"
344 timeout = 0
345 # Icon for notifications with critical urgency, uncomment to enable
346 #icon = /path/to/icon
347#+end_src