mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Added gruvbox theme to dunst and updated mailsync icon
This commit is contained in:
parent
3bcaa4c807
commit
030484fd96
@ -1,7 +1,7 @@
|
|||||||
[global]
|
[global]
|
||||||
monitor = 0
|
monitor = 0
|
||||||
follow = keyboard
|
follow = keyboard
|
||||||
geometry = "350x5-0+24"
|
geometry = "600x5-30+30"
|
||||||
indicate_hidden = yes
|
indicate_hidden = yes
|
||||||
shrink = yes
|
shrink = yes
|
||||||
transparency = 20
|
transparency = 20
|
||||||
@ -10,7 +10,7 @@
|
|||||||
padding = 0
|
padding = 0
|
||||||
horizontal_padding = 8
|
horizontal_padding = 8
|
||||||
frame_width = 3
|
frame_width = 3
|
||||||
icon_position = left
|
frame_color = "#d5c4a1"
|
||||||
|
|
||||||
# Define a color for the separator.
|
# Define a color for the separator.
|
||||||
# possible values are:
|
# possible values are:
|
||||||
@ -18,13 +18,13 @@
|
|||||||
# * 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 = auto
|
separator_color = frame
|
||||||
|
|
||||||
# Sort messages by urgency.
|
# Sort messages by urgency.
|
||||||
sort = yes
|
sort = yes
|
||||||
|
|
||||||
idle_threshold = 120
|
idle_threshold = 120
|
||||||
font = SauceCodePro Nerd Font Mono:style=Regular:pixelsize=12:antialias=true:autohint=true
|
font = SauceCodePro Nerd Font:style=Regular:pixelsize=12:antialias=true:autohint=true
|
||||||
|
|
||||||
line_height = 0
|
line_height = 0
|
||||||
markup = full
|
markup = full
|
||||||
@ -39,7 +39,7 @@
|
|||||||
# %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>\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
alignment = left
|
alignment = left
|
||||||
show_age_threshold = 60
|
show_age_threshold = 60
|
||||||
@ -47,10 +47,11 @@
|
|||||||
ellipsize = middle
|
ellipsize = middle
|
||||||
ignore_newline = no
|
ignore_newline = no
|
||||||
stack_duplicates = true
|
stack_duplicates = true
|
||||||
hide_duplicate_count = false
|
hide_duplicate_count = true
|
||||||
show_indicators = yes
|
show_indicators = yes
|
||||||
|
icon_position = left
|
||||||
max_icon_size = 40
|
max_icon_size = 40
|
||||||
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/
|
#icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/
|
||||||
sticky_history = yes
|
sticky_history = yes
|
||||||
history_length = 20
|
history_length = 20
|
||||||
dmenu = dmenu -p dunst:
|
dmenu = dmenu -p dunst:
|
||||||
@ -72,26 +73,6 @@
|
|||||||
history = ctrl+grave
|
history = ctrl+grave
|
||||||
context = ctrl+shift+period
|
context = ctrl+shift+period
|
||||||
|
|
||||||
[urgency_low]
|
|
||||||
# IMPORTANT: colors have to be defined in quotation marks.
|
|
||||||
# Otherwise the "#" and following would be interpreted as a comment.
|
|
||||||
background = "#282828"
|
|
||||||
foreground = "#928374"
|
|
||||||
timeout = 5
|
|
||||||
# Icon for notifications with low urgency, uncomment to enable
|
|
||||||
#icon = /path/to/icon
|
|
||||||
|
|
||||||
[urgency_normal]
|
|
||||||
background = "#458588"
|
|
||||||
foreground = "#ebdbb2"
|
|
||||||
timeout = 5
|
|
||||||
|
|
||||||
[urgency_critical]
|
|
||||||
background = "#cc2421"
|
|
||||||
foreground = "#ebdbb2"
|
|
||||||
frame_color = "#fabd2f"
|
|
||||||
timeout = 0
|
|
||||||
|
|
||||||
# Every section that isn't one of the above is interpreted as a rules to
|
# Every section that isn't one of the above is interpreted as a rules to
|
||||||
# override settings for certain messages.
|
# override settings for certain messages.
|
||||||
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
||||||
@ -151,20 +132,17 @@
|
|||||||
#
|
#
|
||||||
# vim: ft=cfg
|
# vim: ft=cfg
|
||||||
|
|
||||||
frame_color = "#93a1a1"
|
|
||||||
separator_color = "#93a1a1"
|
|
||||||
|
|
||||||
[base16_low]
|
[base16_low]
|
||||||
msg_urgency = low
|
msg_urgency = low
|
||||||
background = "#073642"
|
background = "#3c3836"
|
||||||
foreground = "#657b83"
|
foreground = "#665c54"
|
||||||
|
|
||||||
[base16_normal]
|
[base16_normal]
|
||||||
msg_urgency = normal
|
msg_urgency = normal
|
||||||
background = "#586e75"
|
background = "#504945"
|
||||||
foreground = "#93a1a1"
|
foreground = "#d5c4a1"
|
||||||
|
|
||||||
[base16_critical]
|
[base16_critical]
|
||||||
msg_urgency = critical
|
msg_urgency = critical
|
||||||
background = "#dc322f"
|
background = "#fb4934"
|
||||||
foreground = "#eee8d5"
|
foreground = "#ebdbb2"
|
||||||
|
@ -26,7 +26,7 @@ syncandnotify() {
|
|||||||
# Extract subject and sender from mail.
|
# Extract subject and sender from mail.
|
||||||
from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//')
|
from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//')
|
||||||
subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | head -n-1 | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | sed 's/^Subject: //' | sed 's/^{[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//' | tr -d '\n')
|
subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | head -n-1 | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | sed 's/^Subject: //' | sed 's/^{[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//' | tr -d '\n')
|
||||||
notify-send "📧$from:" "$subject" &
|
notify-send " $from:" "$subject" &
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user