Minor refinements to dunst config

Change frame colour to the active Tempus themes' `backgroundalt` value.
This makes the frame distinguishable.

Remove transparency.  Adds nothing other that annoyance.

Notifications must always appear at the top right, without any
noticeable offset (there still is a minor one to account for the size of
the frame + 1).
This commit is contained in:
Protesilaos Stavrou 2019-04-28 00:03:17 +03:00
parent b15d0cca15
commit e97571fd17
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 7 additions and 7 deletions

View file

@ -474,8 +474,8 @@ modify_dunst() {
# Change {back,fore}ground value for urgency_low notifications
# Change {back,fore}ground value for urgency_normal notifications
# Change {back,fore}ground value for urgency_critical notifications
sed --follow-symlinks -i "s/\(^separator_color.*\)\(#[0-9a-zA-Z]*\)/\1$backgroundalt/ ; \
s/\(^frame_color.*\)\(#[0-9a-zA-Z]*\)/\1$background/ ; \
sed --follow-symlinks -i "s/\(^separator_color.*\)\(#[0-9a-zA-Z]*\)/\1$backgrounddim/ ; \
s/\(^frame_color.*\)\(#[0-9a-zA-Z]*\)/\1$backgroundalt/ ; \
/urgency_low/,/timeout/ s/\(^b.*\)\(#[0-9a-zA-Z]*\)/\1$backgroundalt/ ; /urgency_low/,/timeout/ s/\(^f.*\)\(#[0-9a-zA-Z]*\)/\1$foregroundalt/ ; \
/urgency_normal/,/timeout/ s/\(^b.*\)\(#[0-9a-zA-Z]*\)/\1$background/ ; /urgency_normal/,/timeout/ s/\(^f.*\)\(#[0-9a-zA-Z]*\)/\1$foreground/ ; \
/urgency_critical/,/timeout/ s/\(^b.*\)\(#[0-9a-zA-Z]*\)/\1$color1/ ; /urgency_critical/,/timeout/ s/\(^f.*\)\(#[0-9a-zA-Z]*\)/\1$background/" "$dunstrc"

View file

@ -10,8 +10,8 @@
[global]
font = "sans 10"
frame_width = 1
frame_color = "#232323"
frame_width = 2
frame_color = "#312e30"
# Possible values are:
# full: Allow a small subset of html markup in notifications:
@ -98,7 +98,7 @@ hide_duplicate_count = false
# NOTE after reading the above, follow this if you want to center on
# screen:
# {( monitor width / 2 ) - ( notification width / 2)}
geometry = "300x4-3+24"
geometry = "300x4-3+3"
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
@ -107,7 +107,7 @@ shrink = no
# 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 = 10
transparency = 0
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
@ -162,7 +162,7 @@ horizontal_padding = 10
# * 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 = "#312e30"
separator_color = "#2a2829"
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst