Add dunst config

This commit is contained in:
Asocia 2021-07-11 18:26:51 +03:00
parent ff159e1dc2
commit 95c85bb8e6
2 changed files with 200 additions and 0 deletions

199
.config/dunst/dunstrc Normal file
View File

@ -0,0 +1,199 @@
[global]
# --- Display --- #
# The monitor to be displayed to
monitor = 0
# Follow monitor with mouse
follow = mouse
# The geometry of the window
# [{width}]x{height}[+/-{x}+/-{y}]
geometry = "270x6-24+68"
# Show how many messages are hidden
indicate_hidden = yes
# Shrink window if it's smaller than the width.
shrink = no
# The transparency of the window.
transparency = 1
# Set height to padding + font size
notification_height = 0
# Draw a line between multiple notifications
separator_height = 3
separator_color = "#ffffffaa"
# Set notification padding
padding = 16
horizontal_padding = 16
# Disable frame (border)
frame_width = 0
# Sort messages by urgency.
sort = no
# Disable idle time
idle_threshold = 0
# --- Text --- #
# Set the font
# font = "Noto Sans 11"
font = "Hack Nerd Font 9.5"
# Set line height to font height
line_height = 0
# Reference for markup and formatting:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
# <https://developer.gnome.org/pango/stable/pango-Markup.html>.
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
markup = full
format = "<b>%a</b>\n%s"
# Left align the text
alignment = left
# Vertical alignment of message text and icon.
vertical_alignment = center
# Show age of message if message is old
show_age_threshold = 120
# Wrap text if it doesn't fit in geometry
word_wrap = yes
# Where to place ellipses if word wrap is disabled
# ellipsize = middle
# Use newlines '\n' in notifications.
ignore_newline = no
# Don't stack together notifications
stack_duplicates = false
# Hide the count of stacked notifications
# hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
# ---- Icons ---- #
# Align icons left/right/off
icon_position = left
# Scale small icons up to this size, set to 0 to disable.
min_icon_size = 0
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 40
# Paths to default icons.
icon_path = /home/kai/.icons/Reversal-blue/apps/scalable:/usr/share/icons/Adwaita/256x256/legacy/
# --- History --- #
# Avoid timing out hidden notifications
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 100
# --- Misc/Advanced --- #
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/firefox -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = false
# Define the title of the windows spawned by dunst
title = Dunst
# Define the class of the windows spawned by dunst
class = Dunst
# Avoid printing a notification on startup
startup_notification = false
# Manage dunst's desire for talking
verbosity = mesg
# Define the corner radius of the notification window
corner_radius = 0
# Don't gnore the dbus closeNotification message.
ignore_dbusclose = false
# --- Legacy --- #
# Use the Xinerama extension instead of RandR for multi-monitor support.
force_xinerama = false
# --- Mouse --- #
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
[experimental]
per_monitor_dpi = false
[shortcuts]
# Close notification.
close = ctrl+space
# Close all notifications.
close_all = ctrl+shift+space
# Redisplay last message(s).
history = ctrl+grave
# Context menu.
context = ctrl+shift+period
# --- Colors --- #
[urgency_low]
background = "#1e2137fa"
foreground = "#ffffffff"
timeout = 8
[urgency_normal]
background = "#1e2137fa"
foreground = "#ffffffff"
timeout = 8
[urgency_critical]
background = "#dd130ddd"
foreground = "#ffffff"
timeout = 0
icon = abrt

View File

@ -10,6 +10,7 @@ My dotfiles
- Shell: [zsh](https://www.zsh.org/) with [oh my zsh](https://github.com/ohmyzsh/ohmyzsh) - Shell: [zsh](https://www.zsh.org/) with [oh my zsh](https://github.com/ohmyzsh/ohmyzsh)
- Shell theme: [powerlevel10k](https://github.com/romkatv/powerlevel10k/) - Shell theme: [powerlevel10k](https://github.com/romkatv/powerlevel10k/)
- Editor: [neovim](https://github.com/neovim/neovim) - Editor: [neovim](https://github.com/neovim/neovim)
- Notifications: [dunst](https://github.com/dunst-project/dunst)
![Sample screenshot](https://raw.github.com/Asocia/dotfiles/master/Pictures/Screenshots/working_environmentv2-0.png) ![Sample screenshot](https://raw.github.com/Asocia/dotfiles/master/Pictures/Screenshots/working_environmentv2-0.png)
![Sample screenshot](https://raw.github.com/Asocia/dotfiles/master/Pictures/Screenshots/working_environmentv2-1.png) ![Sample screenshot](https://raw.github.com/Asocia/dotfiles/master/Pictures/Screenshots/working_environmentv2-1.png)