Skip to content

Commit

Permalink
[dunst] update dunst config to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
meain committed Feb 20, 2024
1 parent d1aa80e commit e27d107
Showing 1 changed file with 75 additions and 125 deletions.
200 changes: 75 additions & 125 deletions dunst/.config/dunst/dunstrc
Original file line number Diff line number Diff line change
@@ -1,164 +1,114 @@
[global]
font = Anka/Coder 8
# See dunst(5) for all configuration options
# https://github.com/dunst-project/dunst/blob/master/dunstrc

# allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough<s/>
# <u>underline</u>
#
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
# If markup is not allowed, those tags will be stripped out of the message.
allow_markup = yes

# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# Markup is allowed
format = "<i>%s</i>\n%b"

# Sort messages by urgency
sort = no

# Show how many messages are currently hidden (because of geometry)
indicate_hidden = yes
[global]
monitor = 0
follow = keyboard

# alignment of message text.
# Possible values are "left", "center" and "right"
alignment = left
width = (0, 300) # dynamic width from 0 to 300
height = 300

# The frequency with wich text that is longer than the notification
# window allows bounces back and forth.
# This option conflicts with 'word_wrap'.
# Set to 0 to disable
bounce_freq = 0
origin = top-right
offset = 10x10
scale = 0
notification_limit = 0

# show age of message if message is older than show_age_threshold seconds.
# set to -1 to disable
show_age_threshold = -1
progress_bar = true
progress_bar_height = 7
progress_bar_frame_width = 0
progress_bar_min_width = 150
progress_bar_max_width = 300
progress_bar_corner_radius = 3 # max = .5*height
icon_corner_radius = 0

# split notifications into multiple lines if they don't fit into geometry
word_wrap = yes
indicate_hidden = yes
transparency = 0
separator_height = 1

# ignore newlines '\n' in notifications
ignore_newline = no
padding = 10
horizontal_padding = 8
text_icon_padding = 0

frame_width = 1
frame_color = "#ffffff"

# the geometry of the window
# geometry [{width}]x{height}][+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else in pixels. If the width
# is omitted but the height is given ("-geometry x2"), the message window
# expands over the whole screen (dmenu-like). If width is 0,
# the window expands to the longest message displayed.
# A positive x is measured from the left, a negative from the
# right side of the screen. Y is measured from the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "0x5-0+20"

# The transparency of the window. range: [0; 100]
# This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
transparency = 0
gap_size = 0
separator_color = frame

# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
idle_threshold = 0
sort = yes

# Which monitor should the notifications be displayed on.
monitor = 0
font = Anka/Coder 8
line_height = 0

# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option will be
# ignored.
follow = keyboard
markup = full
format = "<b>%s</b>\n%b"

# should a notification popped up from history be sticky or
# timeout as if it would normally do.
sticky_history = yes
alignment = left
vertical_alignment = center

# The height of a single line. If the height is smaller than the font height,
# it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 5
show_age_threshold = 60

# Draw a line of 'separatpr_height' pixel height between two notifications.
# Set to 0 to disable
separator_height = 1
ellipsize = end
ignore_newline = no
stack_duplicates = true
hide_duplicate_count = false
show_indicators = yes # Display indicators for URLs (U) and actions (A).

# padding between text and separator
padding = 8
enable_recursive_icon_lookup = true
icon_position = left
min_icon_size = 32
max_icon_size = 128
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/

# horizontal padding
horizontal_padding = 8
sticky_history = yes
history_length = 20

# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background
# * foreground: use the same color as the foreground
# * frame: use the same color as the frame.
# * anything else will be interpreted as a X color
separator_color = frame
dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/xdg-open

# print a notification on startup
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true

# dmenu path
dmenu = /usr/bin/dmenu -p dunst:
title = Dunst
class = Dunst
corner_radius = 5

# browser for opening urls in context menu
browser = /usr/bin/google-chrome
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
# user defined timeout.
ignore_dbusclose = false

[frame]
width = 0
color = "#333333"
force_xwayland = false
force_xinerama = false

[shortcuts]
# shortcuts are specified as [modifier+][modifier+]...key
# available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
# and 'mod4' (windows-key)
# xev might be helpful to find names for keys
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all

# close notification
close = ctrl+space

# close all notifications
close_all = ctrl+shift+space

# redisplay last message(s)
# On the US keyboard layout 'grave' is normally above TAB and left of '1'.
history = ctrl+grave

# context menu
context = ctrl+shift+grave

[experimental]
per_monitor_dpi = false

[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the '#' and following would be interpreted as a comment.
background = "#222222"
foreground = "#888888"
timeout = 3

[urgency_normal]
background = "#000000"
foreground = "#FFFFFF"
foreground = "#ffffff"
highlight = "#ffffff" # used for progressbar
timeout = 5
# override_pause_level = 30

[urgency_critical]
background = "#900000"
foreground = "#FFFFFF"
timeout = 5
foreground = "#ffffff"
frame_color = "#ff0000"
timeout = 0
# override_pause_level = 60

0 comments on commit e27d107

Please sign in to comment.