Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve draw_rounded_rect and fix progress bar #1213

Closed
wants to merge 10 commits into from
26 changes: 24 additions & 2 deletions docs/dunst.5.pod
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,25 @@ than half of the progress bar height.
The corner radius of the progress bar in pixels. Gives the progress bar
rounded corners. Set to 0 to disable.

=item B<progress_bar_corners> (default: all)

Define which corners to round when drawing the progress bar. If progress_bar_corner_radius
is set to 0 this option will be ignored.

See the B<corners> setting for the value format.

=item B<icon_corner_radius> (default: 0)

The corner radius of the icon image in pixels. Gives the icon
rounded corners. Set to 0 to disable.

=item B<icon_corners> (default: all)

Define which corners to round when drawing the icon image. If icon_corner_radius
is set to 0 this option will be ignored.

See the B<corners> setting for the value format.

=item B<indicate_hidden> (values: [true/false], default: true)

If this is set to true, a notification indicating how many notifications are
Expand Down Expand Up @@ -420,8 +434,8 @@ replace this and will need new settings.

=item B<icon_theme> (default: "Adwaita", example: "Adwaita, breeze")

Comma-separated of names of the the themes to use for looking up icons. This has
to be the name of the directory in which the theme is located, not the
Comma-separated list of names of the the themes to use for looking up icons. This
has to be the name of the directory in which the theme is located, not the
human-friendly name of the theme. So for example, the theme B<Breeze Dark> is
located in F</usr/share/icons/breeze-dark>. In this case you have to set the
theme to B<breeze-dark>.
Expand Down Expand Up @@ -508,6 +522,14 @@ single notification.
To avoid the corners clipping the icon or text the corner radius will be
automatically lowered to half of the notification height if it exceeds it.

=item B<corners> (default: all)

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.

=item B<mouse_left/middle/right_click> (values: [none/do_action/close_current/close_all/context/context_all])

Defines action of mouse click. A touch input in Wayland acts as a mouse left
Expand Down
15 changes: 15 additions & 0 deletions dunstrc
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,17 @@
# 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
# notification_limit).
indicate_hidden = yes
Expand Down Expand Up @@ -252,6 +260,13 @@
# notification height to avoid clipping text and/or icons.
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.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
Expand Down
Loading