summaryrefslogtreecommitdiffstats
path: root/Desktop.org
diff options
context:
space:
mode:
Diffstat (limited to 'Desktop.org')
-rw-r--r--Desktop.org207
1 files changed, 207 insertions, 0 deletions
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