Change Dunst Config & Fix Launch Script
- Change dunstrc text alignment to center - Add appname to dunst notifications - Change dunst separator color to auto - Fix launch_dunst.sh to be executable and get values before running dunst - Add updated polybar module icon - Add executable permissions to launch_dunst.sh
This commit is contained in:
@@ -72,7 +72,7 @@
|
|||||||
# * foreground: use the same color as the foreground;
|
# * foreground: use the same color as the foreground;
|
||||||
# * frame: use the same color as the frame;
|
# * frame: use the same color as the frame;
|
||||||
# * anything else will be interpreted as a X color.
|
# * anything else will be interpreted as a X color.
|
||||||
separator_color = frame
|
separator_color = auto
|
||||||
|
|
||||||
# Sort messages by urgency.
|
# Sort messages by urgency.
|
||||||
sort = yes
|
sort = yes
|
||||||
@@ -126,11 +126,11 @@
|
|||||||
# %n progress value if set without any extra characters
|
# %n progress value if set without any extra characters
|
||||||
# %% Literal %
|
# %% Literal %
|
||||||
# Markup is allowed
|
# Markup is allowed
|
||||||
format = "<b>%s</b> %p\n%b"
|
format = "<b>%s</b> | <i>%a</i> %p\n%b"
|
||||||
|
|
||||||
# Alignment of message text.
|
# Alignment of message text.
|
||||||
# Possible values are "left", "center" and "right".
|
# Possible values are "left", "center" and "right".
|
||||||
alignment = left
|
alignment = center
|
||||||
|
|
||||||
# Vertical alignment of message text and icon.
|
# Vertical alignment of message text and icon.
|
||||||
# Possible values are "top", "center" and "bottom".
|
# Possible values are "top", "center" and "bottom".
|
||||||
|
52
.config/dunst/launch_dunst.sh
Normal file → Executable file
52
.config/dunst/launch_dunst.sh
Normal file → Executable file
@@ -1,18 +1,38 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
/usr/bin/dunst -config ~/.config/dunst/dunstrc \
|
# Get values from Xresources
|
||||||
-geometry "0x0-$(xgetres dunst.geometry-x)+$(xgetres dunst.geometry-y)" \
|
config=~/.config/dunst/dunstrc
|
||||||
-separator_height "$(xgetres dunst.sep-height)" \
|
geometry_x=$(xgetres dunst.geometry-x)
|
||||||
-padding "$(xgetres dunst.padding)" \
|
geometry_y=$(xgetres dunst.geometry-y)
|
||||||
-horizontal_padding "$(xgetres dunst.horiz-padding)" \
|
separator_height=$(xgetres dunst.sep-height)
|
||||||
-max_icon_size "$(xgetres dunst.max-icon-size)" \
|
padding=$(xgetres dunst.padding)
|
||||||
-frame_width "$(xgetres dunst.frame-width)" \
|
horizontal_padding=$(xgetres dunst.horiz-padding)
|
||||||
-lb "$(xgetres dunst.low-background)" \
|
max_icon_size=$(xgetres dunst.max-icon-size)
|
||||||
-lf "$(xgetres dunst.low-foreground)" \
|
frame_width=$(xgetres dunst.frame-width)
|
||||||
-lfr "$(xgetres dunst.low-frame)" \
|
lb=$(xgetres dunst.low-background)
|
||||||
-nb "$(xgetres dunst.normal-background)" \
|
lf=$(xgetres dunst.low-foreground)
|
||||||
-nf "$(xgetres dunst.normal-foreground)" \
|
lfr=$(xgetres dunst.low-frame)
|
||||||
-nfr "$(xgetres dunst.normal-frame)" \
|
nb=$(xgetres dunst.normal-background)
|
||||||
-cb "$(xgetres dunst.critical-background)" \
|
nf=$(xgetres dunst.normal-foreground)
|
||||||
-cf "$(xgetres dunst.critical-foreground)" \
|
nfr=$(xgetres dunst.normal-frame)
|
||||||
-cfr "$(xgetres dunst.critical-frame)"
|
cb=$(xgetres dunst.critical-background)
|
||||||
|
cf=$(xgetres dunst.critical-foreground)
|
||||||
|
cfr=$(xgetres dunst.critical-frame)
|
||||||
|
|
||||||
|
# Kill and running dunst instances and start
|
||||||
|
killall dunst;/usr/bin/dunst -config $config \
|
||||||
|
-geometry "0x0-$geometry_x+$geometry_y" \
|
||||||
|
-separator_height "$separator_height" \
|
||||||
|
-padding "$padding" \
|
||||||
|
-horizontal_padding "$horizontal_padding" \
|
||||||
|
-max_icon_size "$max_icon_size" \
|
||||||
|
-frame_width "$frame_width" \
|
||||||
|
-lb "$lb" \
|
||||||
|
-lf "$lf" \
|
||||||
|
-lfr "$lfr" \
|
||||||
|
-nb "$nb" \
|
||||||
|
-nf "$nf" \
|
||||||
|
-nfr "$nfr" \
|
||||||
|
-cb "$cb" \
|
||||||
|
-cf "$cf" \
|
||||||
|
-cfr "$cfr"
|
||||||
|
Submodule .config/polybar updated: 6ae0ce38d3...1a26902b50
Reference in New Issue
Block a user