Skip to content

Commit

Permalink
finally update dunst to >1.7 configuration
Browse files Browse the repository at this point in the history
Config adapted based on docs:
    https://github.com/dunst-project/dunst/blob/master/docs/dunst.5.pod

And the somewhat controversial original issue :
    dunst-project/dunst#940

For now just using a hardcoded gruvbox, as making the theme adaptive is
a bit cumbersome
  • Loading branch information
ecly committed Aug 10, 2022
1 parent 4081c4c commit f8a9450
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 37 deletions.
26 changes: 16 additions & 10 deletions .config/dunst/dunstrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
sort = yes
indicate_hidden = yes
alignment = center
bounce_freq = 0
show_age_threshold = 60
word_wrap = yes
ignore_newline = no
# geometry [{width}]x{height}][+/-{x}+/-{y}]
geometry = "300x5-20+40"
width = 300
height = 200
offset = 10x45
transparency = 0
idle_threshold = 120
monitor = 0
Expand All @@ -21,24 +21,30 @@
padding = 8
horizontal_padding = 8
separator_color = "#585858"
startup_notification = false
notification_height = 0
frame_width = 4
# https://github.com/knopwob/dunst/issues/26#issuecomment-36159395
#icon_position = left
#icon_folders = /usr/share/icons/elementary/actions/16/

[shortcuts]
close = ctrl+space
close_all = ctrl+shift+space
history = ctrl+period
context = ctrl+shift+period

[urgency_low]
timeout = 5
# color0
background = "#282828"
# color15
foreground = "#fbf1c7"
# color2
frame_color = "#b8bb26"


[urgency_normal]
timeout = 5
background = "#282828"
foreground = "#fbf1c7"
frame_color = "#b8bb26"

[urgency_critical]
timeout = 0
background = "#282828"
foreground = "#fbf1c7"
frame_color = "#b8bb26"
28 changes: 1 addition & 27 deletions Scripts/dunst.sh
Original file line number Diff line number Diff line change
@@ -1,34 +1,8 @@
#!/usr/bin/env bash
#
# Script to set colors generated by 'wal'
# https://github.com/dylanaraps/wal

# Source generated colors.
source "${HOME}/.cache/wal/colors.sh"


reload_dunst() {
font="Terminus (TTF) 14"
geometry="300x5-10+45"
if [ "$HOSTNAME" = trsh ]; then
font="xos4 Terminus 10"
geometry="300x5-20+60"
fi

pkill dunst
dunst -config ~/.config/dunst/dunstrc \
-geom "${geometry}" \
-fn "${font}" \
-lb "${color0:-#F0F0F0}" \
-nb "${color0:-#F0F0F0}" \
-cb "${color0:-#F0F0F0}" \
-lf "${color15:=#000000}" \
-bf "${color15:=#000000}" \
-cf "${color15:=#000000}" \
-nf "${color15:=#000000}" \
-lfr "${color2:=#000000}" \
-nfr "${color2:=#000000}" \
-cfr "${color2:=#000000}" &
dunst -config ~/.config/dunst/dunstrc
}

main() {
Expand Down

0 comments on commit f8a9450

Please sign in to comment.