From 634db612a1f8d6f5e60db9abaf0040920701c949 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 23 Nov 2021 11:08:09 +0000 Subject: [PATCH] dunst: Fix window geometry with new version This more or less replicates the old behaviour with window placement using the new configuration options. Signed-off-by: Joe Groocock --- dunst/dunstrc | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/dunst/dunstrc b/dunst/dunstrc index 8183ff8..e69c1fb 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -51,21 +51,16 @@ # Ignore newlines '\n' in notifications. ignore_newline = no - # The geometry of the window: - # [{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. + # dynamic width from 0 to 400 + # width = (0, 400) + # constant width of 400 + width = (320, 360) - # 53 = 30 + 23 (bar-height) - geometry = "360x5-30+30" + # Position the notification in the top right corner + origin = top-right + + # Offset from the origin + offset = 30x30 # Shrink window if it's smaller than the width. Will be ignored if # width is 0. @@ -74,7 +69,7 @@ # 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 = 15 + transparency = 20 # Don't remove messages, if the user is idle (no mouse or keyboard input) # for longer than idle_threshold seconds.