Skip to content

Commit 5acf48f

Browse files
committed
import more config files and scripts
1 parent 4488a38 commit 5acf48f

File tree

4 files changed

+444
-0
lines changed

4 files changed

+444
-0
lines changed

dotfiles/.config/dunst/dunstrc

Lines changed: 320 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,320 @@
1+
[global]
2+
### Display ###
3+
4+
# Which monitor should the notifications be displayed on.
5+
monitor = 0
6+
7+
# Display notification on focused monitor. Possible modes are:
8+
# mouse: follow mouse pointer
9+
# keyboard: follow window with keyboard focus
10+
# none: don't follow anything
11+
#
12+
# "keyboard" needs a window manager that exports the
13+
# _NET_ACTIVE_WINDOW property.
14+
# This should be the case for almost all modern window managers.
15+
#
16+
# If this option is set to mouse or keyboard, the monitor option
17+
# will be ignored.
18+
follow = mouse
19+
20+
# The geometry of the window:
21+
# [{width}]x{height}[+/-{x}+/-{y}]
22+
# The geometry of the message window.
23+
# The height is measured in number of notifications everything else
24+
# in pixels. If the width is omitted but the height is given
25+
# ("-geometry x2"), the message window expands over the whole screen
26+
# (dmenu-like). If width is 0, the window expands to the longest
27+
# message displayed. A positive x is measured from the left, a
28+
# negative from the right side of the screen. Y is measured from
29+
# the top and down respectively.
30+
# The width can be negative. In this case the actual width is the
31+
# screen width minus the width defined in within the geometry option.
32+
geometry = "300x5-30+20"
33+
34+
# Show how many messages are currently hidden (because of geometry).
35+
indicate_hidden = yes
36+
37+
# Shrink window if it's smaller than the width. Will be ignored if
38+
# width is 0.
39+
shrink = no
40+
41+
# The transparency of the window. Range: [0; 100].
42+
# This option will only work if a compositing window manager is
43+
# present (e.g. xcompmgr, compiz, etc.).
44+
transparency = 0
45+
46+
# The height of the entire notification. If the height is smaller
47+
# than the font height and padding combined, it will be raised
48+
# to the font height and padding.
49+
notification_height = 0
50+
51+
# Draw a line of "separator_height" pixel height between two
52+
# notifications.
53+
# Set to 0 to disable.
54+
separator_height = 2
55+
56+
# Padding between text and separator.
57+
padding = 8
58+
59+
# Horizontal padding.
60+
horizontal_padding = 8
61+
62+
# Defines width in pixels of frame around the notification window.
63+
# Set to 0 to disable.
64+
frame_width = 3
65+
66+
# Defines color of the frame around the notification window.
67+
frame_color = "#aaaaaa"
68+
69+
# Define a color for the separator.
70+
# possible values are:
71+
# * auto: dunst tries to find a color fitting to the background;
72+
# * foreground: use the same color as the foreground;
73+
# * frame: use the same color as the frame;
74+
# * anything else will be interpreted as a X color.
75+
separator_color = frame
76+
77+
# Sort messages by urgency.
78+
sort = yes
79+
80+
# Don't remove messages, if the user is idle (no mouse or keyboard input)
81+
# for longer than idle_threshold seconds.
82+
# Set to 0 to disable.
83+
idle_threshold = 120
84+
85+
### Text ###
86+
87+
font = Monospace 8
88+
89+
# The spacing between lines. If the height is smaller than the
90+
# font height, it will get raised to the font height.
91+
line_height = 0
92+
93+
# Possible values are:
94+
# full: Allow a small subset of html markup in notifications:
95+
# <b>bold</b>
96+
# <i>italic</i>
97+
# <s>strikethrough</s>
98+
# <u>underline</u>
99+
#
100+
# For a complete reference see
101+
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
102+
#
103+
# strip: This setting is provided for compatibility with some broken
104+
# clients that send markup even though it's not enabled on the
105+
# server. Dunst will try to strip the markup but the parsing is
106+
# simplistic so using this option outside of matching rules for
107+
# specific applications *IS GREATLY DISCOURAGED*.
108+
#
109+
# no: Disable markup parsing, incoming notifications will be treated as
110+
# plain text. Dunst will not advertise that it has the body-markup
111+
# capability if this is set as a global setting.
112+
#
113+
# It's important to note that markup inside the format option will be parsed
114+
# regardless of what this is set to.
115+
markup = full
116+
117+
# The format of the message. Possible variables are:
118+
# %a appname
119+
# %s summary
120+
# %b body
121+
# %i iconname (including its path)
122+
# %I iconname (without its path)
123+
# %p progress value if set ([ 0%] to [100%]) or nothing
124+
# %n progress value if set without any extra characters
125+
# Markup is allowed
126+
format = "<b>%s</b>\n%b"
127+
128+
# Alignment of message text.
129+
# Possible values are "left", "center" and "right".
130+
alignment = left
131+
132+
# Show age of message if message is older than show_age_threshold
133+
# seconds.
134+
# Set to -1 to disable.
135+
show_age_threshold = 60
136+
137+
# Split notifications into multiple lines if they don't fit into
138+
# geometry.
139+
word_wrap = yes
140+
141+
# Ignore newlines '\n' in notifications.
142+
ignore_newline = no
143+
144+
# Merge multiple notifications with the same content
145+
stack_duplicates = true
146+
147+
# Hide the count of merged notifications with the same content
148+
hide_duplicate_count = false
149+
150+
# Display indicators for URLs (U) and actions (A).
151+
show_indicators = yes
152+
153+
### Icons ###
154+
155+
# Align icons left/right/off
156+
icon_position = off
157+
158+
# Scale larger icons down to this size, set to 0 to disable
159+
max_icon_size = 32
160+
161+
# Paths to default icons.
162+
icon_folders = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
163+
164+
### History ###
165+
166+
# Should a notification popped up from history be sticky or timeout
167+
# as if it would normally do.
168+
sticky_history = yes
169+
170+
# Maximum amount of notifications kept in history
171+
history_length = 20
172+
173+
### Misc/Advanced ###
174+
175+
# dmenu path.
176+
dmenu = /usr/bin/dmenu -p dunst:
177+
178+
# Browser for opening urls in context menu.
179+
browser = /usr/bin/firefox -new-tab
180+
181+
# Always run rule-defined scripts, even if the notification is suppressed
182+
always_run_script = true
183+
184+
# Define the title of the windows spawned by dunst
185+
title = Dunst
186+
187+
# Define the class of the windows spawned by dunst
188+
class = Dunst
189+
190+
# Print a notification on startup.
191+
# This is mainly for error detection, since dbus (re-)starts dunst
192+
# automatically after a crash.
193+
startup_notification = false
194+
195+
### Legacy
196+
197+
# Use the Xinerama extension instead of RandR for multi-monitor support.
198+
# This setting is provided for compatibility with older nVidia drivers that
199+
# do not support RandR and using it on systems that support RandR is highly
200+
# discouraged.
201+
#
202+
# By enabling this setting dunst will not be able to detect when a monitor
203+
# is connected or disconnected which might break follow mode if the screen
204+
# layout changes.
205+
force_xinerama = false
206+
207+
# Experimental features that may or may not work correctly. Do not expect them
208+
# to have a consistent behaviour across releases.
209+
[experimental]
210+
# Calculate the dpi to use on a per-monitor basis.
211+
# If this setting is enabled the Xft.dpi value will be ignored and instead
212+
# dunst will attempt to calculate an appropriate dpi value for each monitor
213+
# using the resolution and physical size. This might be useful in setups
214+
# where there are multiple screens with very different dpi values.
215+
per_monitor_dpi = false
216+
217+
[shortcuts]
218+
219+
# Shortcuts are specified as [modifier+][modifier+]...key
220+
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
221+
# "mod3" and "mod4" (windows-key).
222+
# Xev might be helpful to find names for keys.
223+
224+
# Close notification.
225+
close = ctrl+space
226+
227+
# Close all notifications.
228+
close_all = ctrl+shift+space
229+
230+
# Redisplay last message(s).
231+
# On the US keyboard layout "grave" is normally above TAB and left
232+
# of "1". Make sure this key actually exists on your keyboard layout,
233+
# e.g. check output of 'xmodmap -pke'
234+
history = ctrl+grave
235+
236+
# Context menu.
237+
context = ctrl+shift+period
238+
239+
[urgency_low]
240+
# IMPORTANT: colors have to be defined in quotation marks.
241+
# Otherwise the "#" and following would be interpreted as a comment.
242+
background = "#222222"
243+
foreground = "#888888"
244+
timeout = 10
245+
# Icon for notifications with low urgency, uncomment to enable
246+
#icon = /path/to/icon
247+
248+
[urgency_normal]
249+
background = "#285577"
250+
foreground = "#ffffff"
251+
timeout = 10
252+
# Icon for notifications with normal urgency, uncomment to enable
253+
#icon = /path/to/icon
254+
255+
[urgency_critical]
256+
background = "#900000"
257+
foreground = "#ffffff"
258+
frame_color = "#ff0000"
259+
timeout = 0
260+
# Icon for notifications with critical urgency, uncomment to enable
261+
#icon = /path/to/icon
262+
263+
# Every section that isn't one of the above is interpreted as a rules to
264+
# override settings for certain messages.
265+
# Messages can be matched by "appname", "summary", "body", "icon", "category",
266+
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
267+
# "background", "new_icon" and "format".
268+
# Shell-like globbing will get expanded.
269+
#
270+
# SCRIPTING
271+
# You can specify a script that gets run when the rule matches by
272+
# setting the "script" option.
273+
# The script will be called as follows:
274+
# script appname summary body icon urgency
275+
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
276+
#
277+
# NOTE: if you don't want a notification to be displayed, set the format
278+
# to "".
279+
# NOTE: It might be helpful to run dunst -print in a terminal in order
280+
# to find fitting options for rules.
281+
282+
#[espeak]
283+
# summary = "*"
284+
# script = dunst_espeak.sh
285+
286+
#[script-test]
287+
# summary = "*script*"
288+
# script = dunst_test.sh
289+
290+
#[ignore]
291+
# # This notification will not be displayed
292+
# summary = "foobar"
293+
# format = ""
294+
295+
#[history-ignore]
296+
# # This notification will not be saved in history
297+
# summary = "foobar"
298+
# history_ignore = yes
299+
300+
#[signed_on]
301+
# appname = Pidgin
302+
# summary = "*signed on*"
303+
# urgency = low
304+
#
305+
#[signed_off]
306+
# appname = Pidgin
307+
# summary = *signed off*
308+
# urgency = low
309+
#
310+
#[says]
311+
# appname = Pidgin
312+
# summary = *says*
313+
# urgency = critical
314+
#
315+
#[twitter]
316+
# appname = Pidgin
317+
# summary = *twitter.com*
318+
# urgency = normal
319+
#
320+
# vim: ft=cfg
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
math.randomseed(os.time())
2+
3+
function randomJump()
4+
duration = mp.get_property_number("duration")
5+
target = math.floor(duration * math.random())
6+
mp.set_property("time-pos", target)
7+
end
8+
9+
mp.add_key_binding("ctrl+R", randomJump)

0 commit comments

Comments
 (0)