Mise à jour de la configuration de Dunst

This commit is contained in:
Breizh 2024-05-31 21:31:45 +02:00
parent 98b1820e40
commit 5004c798d7
3 changed files with 66 additions and 11 deletions

View file

@ -43,7 +43,7 @@
### Progress bar ### ### Progress bar ###
# Turn on the progess bar. It appears when a progress hint is passed with # Turn on the progress bar. It appears when a progress hint is passed with
# for example dunstify -h int:value:12 # for example dunstify -h int:value:12
progress_bar = true progress_bar = true
@ -60,6 +60,19 @@
# Set the maximum width for the progress bar # Set the maximum width for the progress bar
progress_bar_max_width = 300 progress_bar_max_width = 300
# Corner radius for the progress bar. 0 disables rounded corners.
progress_bar_corner_radius = 0
# Define which corners to round when drawing the progress bar. If progress_bar_corner_radius
# is set to 0 this option will be ignored.
progress_bar_corners = all
# Corner radius for the icon image.
icon_corner_radius = 0
# Define which corners to round when drawing the icon image. If icon_corner_radius
# is set to 0 this option will be ignored.
icon_corners = all
# Show how many messages are currently hidden (because of # Show how many messages are currently hidden (because of
# notification_limit). # notification_limit).
@ -73,6 +86,7 @@
# Draw a line of "separator_height" pixel height between two # Draw a line of "separator_height" pixel height between two
# notifications. # notifications.
# Set to 0 to disable. # Set to 0 to disable.
# If gap_size is greater than 0, this setting will be ignored.
separator_height = 1 separator_height = 1
# Padding between text and separator. # Padding between text and separator.
@ -91,6 +105,12 @@
# Defines color of the frame around the notification window. # Defines color of the frame around the notification window.
frame_color = "#6699CC" frame_color = "#6699CC"
# Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border
# of size frame_width will be drawn around each notification instead.
# Click events on gaps do not currently propagate to applications below.
gap_size = 0
# Define a color for the separator. # Define a color for the separator.
# possible values are: # possible values are:
# * auto: dunst tries to find a color fitting to the background; # * auto: dunst tries to find a color fitting to the background;
@ -99,8 +119,13 @@
# * anything else will be interpreted as a X color. # * anything else will be interpreted as a X color.
separator_color = frame separator_color = frame
# Sort messages by urgency. # Sort type.
sort = yes # possible values are:
# * id: sort by id
# * urgency_ascending: sort by urgency (low then normal then critical)
# * urgency_descending: sort by urgency (critical then normal then low)
# * update: sort by update (most recent always at the top)
sort = urgency_descending
# Don't remove messages, if the user is idle (no mouse or keyboard input) # Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds. # for longer than idle_threshold seconds.
@ -125,7 +150,7 @@
# <u>underline</u> # <u>underline</u>
# #
# For a complete reference see # For a complete reference see
# <https://developer.gnome.org/pango/stable/pango-Markup.html>. # <https://docs.gtk.org/Pango/pango_markup.html>.
# #
# strip: This setting is provided for compatibility with some broken # strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the # clients that send markup even though it's not enabled on the
@ -184,18 +209,27 @@
### Icons ### ### Icons ###
# Align icons left/right/off # Recursive icon lookup. You can set a single theme, instead of having to
# define all lookup paths.
enable_recursive_icon_lookup = true
# Set icon theme (only used for recursive icon lookup)
icon_theme = "Vertex-Icons, Adwaita"
# You can also set multiple icon themes, with the leftmost one being used first.
# icon_theme = "Adwaita, breeze"
# Align icons left/right/top/off
icon_position = left icon_position = left
# Scale small icons up to this size, set to 0 to disable. Helpful # Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict, # for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this. # max_icon_size takes precedence over this.
min_icon_size = 0 min_icon_size = 32
# Scale larger icons down to this size, set to 0 to disable # Scale larger icons down to this size, set to 0 to disable
max_icon_size = 32 max_icon_size = 32
# Paths to default icons. # Paths to default icons (only necessary when not using recursive icon lookup)
icon_path = /usr/share/icons/Vertex-Icons/status/16:/usr/share/icons/Vertex-Icons/devices/16 icon_path = /usr/share/icons/Vertex-Icons/status/16:/usr/share/icons/Vertex-Icons/devices/16
### History ### ### History ###
@ -231,6 +265,13 @@
# notification height to avoid clipping text and/or icons. # notification height to avoid clipping text and/or icons.
corner_radius = 0 corner_radius = 0
# Define which corners to round when drawing the window. If the corner radius
# is set to 0 this option will be ignored.
#
# Comma-separated list of the corners. The accepted corner values are bottom-right,
# bottom-left, top-right, top-left, top, bottom, left, right or all.
corners = all
# Ignore the dbus closeNotification message. # Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this # Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the # parameter, an application may close the notification sent before the
@ -240,7 +281,7 @@
### Wayland ### ### Wayland ###
# These settings are Wayland-specific. They have no effect when using X11 # These settings are Wayland-specific. They have no effect when using X11
# Uncomment this if you want to let notications appear under fullscreen # Uncomment this if you want to let notifications appear under fullscreen
# applications (default: overlay) # applications (default: overlay)
# layer = top # layer = top
@ -312,8 +353,9 @@
foreground = "#D3D0C8" foreground = "#D3D0C8"
frame_color = "#F2777A" frame_color = "#F2777A"
timeout = 0 timeout = 0
override_pause_level = 60
# Icon for notifications with critical urgency, uncomment to enable # Icon for notifications with critical urgency, uncomment to enable
#icon = /path/to/icon #default_icon = /path/to/icon
# Every section that isn't one of the above is interpreted as a rules to # Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages. # override settings for certain messages.
@ -338,9 +380,18 @@
# new_icon # new_icon
# set_stack_tag # set_stack_tag
# set_transient # set_transient
# set_category
# timeout # timeout
# urgency # urgency
# icon_position
# skip_display
# history_ignore
# action_name # action_name
# word_wrap
# ellipsize
# alignment
# hide_text
# override_pause_level
# #
# Shell-like globbing will get expanded. # Shell-like globbing will get expanded.
# #
@ -348,6 +399,10 @@
# GLib based applications export their desktop-entry name. In comparison to the appname, # GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized. # the desktop-entry won't get localized.
# #
# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level.
# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules:
# override_pause_level = X
# SCRIPTING # SCRIPTING
# You can specify a script that gets run when the rule matches by # You can specify a script that gets run when the rule matches by
# setting the "script" option. # setting the "script" option.

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
case $1 in case $1 in
period-changed) period-changed)
exec dunstify -u low -r 6903 "Redshift" "Period changed to $3" exec dunstify -i redshift -u low -r 6903 "Redshift" "Period changed to $3"
esac esac

View file

@ -37,7 +37,7 @@ do
fi fi
# Notification du morceau # Notification du morceau
dunstify -r "$DUNST_ID" "MPD" "${artist:+${artist}$'\n'}${title}"$'\n'"${album}" dunstify -i mpd -r "$DUNST_ID" "MPD" "${artist:+${artist}$'\n'}${title}"$'\n'"${album}"
# Ajout au scrobbler Pleroma # Ajout au scrobbler Pleroma
curl -s -X POST -u "breizh:$(pass show Web/pleroma.breizh.pm)" \ curl -s -X POST -u "breizh:$(pass show Web/pleroma.breizh.pm)" \