first simple config of dunst

This commit is contained in:
quak
2024-09-25 21:59:58 +02:00
parent 1ca7a1d732
commit 8746cb32b3
5 changed files with 55 additions and 101 deletions

View File

@@ -10,6 +10,7 @@ A collection of configuration files meant to be used with GNU stow.
* configure 'logind' * configure 'logind'
* configure lock screen (probably i3lock) * configure lock screen (probably i3lock)
* 'fzf'?? * 'fzf'??
* neovim -.-
## Usage ## Usage
@@ -24,6 +25,7 @@ A collection of configuration files meant to be used with GNU stow.
* feh * feh
* firefox * firefox
* git * git
* maim
* man * man
* pavucontrol * pavucontrol
* picom * picom
@@ -33,6 +35,10 @@ A collection of configuration files meant to be used with GNU stow.
* starship * starship
* stow * stow
* unzip * unzip
* xclip
AUR:
* paru
* visual-studio-code-bin * visual-studio-code-bin

View File

@@ -54,7 +54,7 @@ color = "0xD75B99"
# pastel green yellow'ish # pastel green yellow'ish
[[colors.indexed_colors]] [[colors.indexed_colors]]
index = 0x12 index = 0x12
color = "0x85c567" color = "0x85C567"
# pastel yellow # pastel yellow
[[colors.indexed_colors]] [[colors.indexed_colors]]
index = 0x13 index = 0x13
@@ -66,7 +66,7 @@ color = "0x81CFC6"
# pastel cyan # pastel cyan
[[colors.indexed_colors]] [[colors.indexed_colors]]
index = 0x15 index = 0x15
color = "0x3ea389" color = "0x3EA389"
# pastel orange # pastel orange
[[colors.indexed_colors]] [[colors.indexed_colors]]
index = 0x16 index = 0x16

View File

@@ -5,13 +5,6 @@
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
# functions
show256colors () {
for code in {0..255}; do
echo -e "\e[38;05;${code}m $code: Color";
done
}
alias ls='ls -hal --color=auto' alias ls='ls -hal --color=auto'
alias list='eza -lao --no-permissions --group-directories-first -s=ext --color=always --time-style long-iso' alias list='eza -lao --no-permissions --group-directories-first -s=ext --color=always --time-style long-iso'
# alias list='lsd -lA' # alias list='lsd -lA'
@@ -31,3 +24,7 @@ eval "$(starship init bash)"
# setup qmk completion # setup qmk completion
# source /home/scbj/repos/qmk_firmware/util/qmk_tab_complete.sh # source /home/scbj/repos/qmk_firmware/util/qmk_tab_complete.sh
# custom functions for specific purposes
source ~/collection/commands/colors.sh
source ~/collection/commands/dunst.sh

View File

@@ -17,7 +17,7 @@
# #
# If this option is set to mouse or keyboard, the monitor option # If this option is set to mouse or keyboard, the monitor option
# will be ignored. # will be ignored.
follow = none follow = keyboard
### Geometry ### ### Geometry ###
@@ -27,56 +27,43 @@
width = 300 width = 300
# The maximum height of a single notification, excluding the frame. # The maximum height of a single notification, excluding the frame.
height = 300 height = 180
# Position the notification in the top right corner # Position the notification in the top right corner
origin = top-right origin = top-right
# Offset from the origin # Offset from the origin
offset = 10x50 offset = 12x80
# Scale factor. It is auto-detected if value is 0. # Scale factor. It is auto-detected if value is 0.
scale = 0 scale = 0
# Maximum number of notification (0 means no limit) # Maximum number of notification (0 means no limit)
notification_limit = 20 notification_limit = 5
### Progress bar ### ### Progress bar ###
# Turn on the progress bar. It appears when a progress hint is passed with # Turn on the progess bar. It appears when a progress hint is passed with
# for example dunstify -h int:value:12 # for example dunstify -h int:value:12
progress_bar = true progress_bar = true
# Set the progress bar height. This includes the frame, so make sure # Set the progress bar height. This includes the frame, so make sure
# it's at least twice as big as the frame width. # it's at least twice as big as the frame width.
progress_bar_height = 10 progress_bar_height = 4
# Set the frame width of the progress bar # Set the frame width of the progress bar
progress_bar_frame_width = 1 progress_bar_frame_width = 0
# Set the minimum width for the progress bar # Set the minimum width for the progress bar
progress_bar_min_width = 150 progress_bar_min_width = 150
# Set the maximum width for the progress bar # Set the maximum width for the progress bar
progress_bar_max_width = 300 progress_bar_max_width = 350
# Corner radius for the progress bar. 0 disables rounded corners.
progress_bar_corner_radius = 0
# Define which corners to round when drawing the progress bar. If progress_bar_corner_radius
# is set to 0 this option will be ignored.
progress_bar_corners = all
# Corner radius for the icon image.
icon_corner_radius = 0
# Define which corners to round when drawing the icon image. If icon_corner_radius
# is set to 0 this option will be ignored.
icon_corners = all
# Show how many messages are currently hidden (because of # Show how many messages are currently hidden (because of
# notification_limit). # notification_limit).
indicate_hidden = yes indicate_hidden = no
# The transparency of the window. Range: [0; 100]. # The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is # This option will only work if a compositing window manager is
@@ -86,30 +73,23 @@
# Draw a line of "separator_height" pixel height between two # Draw a line of "separator_height" pixel height between two
# notifications. # notifications.
# Set to 0 to disable. # Set to 0 to disable.
# If gap_size is greater than 0, this setting will be ignored. separator_height = 1
separator_height = 2
# Padding between text and separator. # Padding between text and separator.
padding = 8 padding = 6
# Horizontal padding. # Horizontal padding.
horizontal_padding = 8 horizontal_padding = 12
# Padding between text and icon. # Padding between text and icon.
text_icon_padding = 0 text_icon_padding = 10
# Defines width in pixels of frame around the notification window. # Defines width in pixels of frame around the notification window.
# Set to 0 to disable. # Set to 0 to disable.
frame_width = 3 frame_width = 1
# Defines color of the frame around the notification window. # Defines color of the frame around the notification window.
frame_color = "#aaaaaa" frame_color = "#85C567"
# Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border
# of size frame_width will be drawn around each notification instead.
# Click events on gaps do not currently propagate to applications below.
gap_size = 0
# Define a color for the separator. # Define a color for the separator.
# possible values are: # possible values are:
@@ -117,26 +97,21 @@
# * 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 = "#85C567"
# Sort type. # Sort messages by urgency.
# possible values are: sort = no
# * id: sort by id
# * urgency_ascending: sort by urgency (low then normal then critical)
# * urgency_descending: sort by urgency (critical then normal then low)
# * update: sort by update (most recent always at the top)
sort = yes
# Don't remove messages, if the user is idle (no mouse or keyboard input) # Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds. # for longer than idle_threshold seconds.
# Set to 0 to disable. # Set to 0 to disable.
# A client can set the 'transient' hint to bypass this. See the rules # A client can set the 'transient' hint to bypass this. See the rules
# section for how to disable this if necessary # section for how to disable this if necessary
# idle_threshold = 120 idle_threshold = 120
### Text ### ### Text ###
font = Monospace 8 font = Victor Mono NerdFont 12
# The spacing between lines. If the height is smaller than the # The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height. # font height, it will get raised to the font height.
@@ -202,35 +177,26 @@
stack_duplicates = true stack_duplicates = true
# Hide the count of stacked notifications with the same content # Hide the count of stacked notifications with the same content
hide_duplicate_count = false hide_duplicate_count = true
# Display indicators for URLs (U) and actions (A). # Display indicators for URLs (U) and actions (A).
show_indicators = yes show_indicators = yes
### Icons ### ### Icons ###
# Recursive icon lookup. You can set a single theme, instead of having to # Align icons left/right/off
# define all lookup paths.
enable_recursive_icon_lookup = true
# Set icon theme (only used for recursive icon lookup)
icon_theme = Adwaita
# You can also set multiple icon themes, with the leftmost one being used first.
# icon_theme = "Adwaita, breeze"
# Align icons left/right/top/off
icon_position = left icon_position = left
# Scale small icons up to this size, set to 0 to disable. Helpful # Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict, # for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this. # max_icon_size takes precedence over this.
min_icon_size = 32 min_icon_size = 0
# Scale larger icons down to this size, set to 0 to disable # Scale larger icons down to this size, set to 0 to disable
max_icon_size = 128 max_icon_size = 90
# Paths to default icons (only necessary when not using recursive icon lookup) # Paths to default icons.
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ icon_path = /usr/share/icons/Adwaita/16x16/mimetypes/:/usr/share/icons/Papirus-Dark/16x16/actions/
### History ### ### History ###
@@ -239,7 +205,7 @@
sticky_history = yes sticky_history = yes
# Maximum amount of notifications kept in history # Maximum amount of notifications kept in history
history_length = 20 history_length = 16
### Misc/Advanced ### ### Misc/Advanced ###
@@ -252,10 +218,10 @@
# Always run rule-defined scripts, even if the notification is suppressed # Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true always_run_script = true
# Define the title of the windows spawned by dunst (X11 only) # Define the title of the windows spawned by dunst
title = Dunst title = Dunst
# Define the class of the windows spawned by dunst (X11 only) # Define the class of the windows spawned by dunst
class = Dunst class = Dunst
# Define the corner radius of the notification window # Define the corner radius of the notification window
@@ -265,13 +231,6 @@
# notification height to avoid clipping text and/or icons. # notification height to avoid clipping text and/or icons.
corner_radius = 0 corner_radius = 0
# Define which corners to round when drawing the window. If the corner radius
# is set to 0 this option will be ignored.
#
# Comma-separated list of the corners. The accepted corner values are bottom-right,
# bottom-left, top-right, top-left, top, bottom, left, right or all.
corners = all
# Ignore the dbus closeNotification message. # Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this # Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the # parameter, an application may close the notification sent before the
@@ -281,7 +240,7 @@
### Wayland ### ### Wayland ###
# These settings are Wayland-specific. They have no effect when using X11 # These settings are Wayland-specific. They have no effect when using X11
# Uncomment this if you want to let notifications appear under fullscreen # Uncomment this if you want to let notications appear under fullscreen
# applications (default: overlay) # applications (default: overlay)
# layer = top # layer = top
@@ -315,7 +274,7 @@
# * context_all: Open context menu for all notifications. # * context_all: Open context menu for all notifications.
# These values can be strung together for each mouse event, and # These values can be strung together for each mouse event, and
# will be executed in sequence. # will be executed in sequence.
mouse_left_click = close_current mouse_left_click = do_action
mouse_middle_click = do_action, close_current mouse_middle_click = do_action, close_current
mouse_right_click = close_all mouse_right_click = close_all
@@ -333,26 +292,24 @@
[urgency_low] [urgency_low]
# IMPORTANT: colors have to be defined in quotation marks. # IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment. # Otherwise the "#" and following would be interpreted as a comment.
background = "#222222" background = "#0C0C18E2"
foreground = "#888888" foreground = "#85C567"
timeout = 10 timeout = 8
# Icon for notifications with low urgency, uncomment to enable # Icon for notifications with low urgency, uncomment to enable
#default_icon = /path/to/icon #default_icon = /path/to/icon
[urgency_normal] [urgency_normal]
background = "#285577" background = "#0C0C18E2"
foreground = "#ffffff" foreground = "#85C567"
timeout = 10 timeout = 8
override_pause_level = 30
# Icon for notifications with normal urgency, uncomment to enable # Icon for notifications with normal urgency, uncomment to enable
#default_icon = /path/to/icon #default_icon = /path/to/icon
[urgency_critical] [urgency_critical]
background = "#900000" background = "#0C0C18E2"
foreground = "#ffffff" foreground = "#E02482"
frame_color = "#ff0000" frame_color = "#E02482"
timeout = 0 timeout = 15
override_pause_level = 60
# Icon for notifications with critical urgency, uncomment to enable # Icon for notifications with critical urgency, uncomment to enable
#default_icon = /path/to/icon #default_icon = /path/to/icon
@@ -382,15 +339,12 @@
# set_category # set_category
# timeout # timeout
# urgency # urgency
# icon_position
# skip_display # skip_display
# history_ignore # history_ignore
# action_name # action_name
# word_wrap # word_wrap
# ellipsize # ellipsize
# alignment # alignment
# hide_text
# override_pause_level
# #
# Shell-like globbing will get expanded. # Shell-like globbing will get expanded.
# #
@@ -398,10 +352,6 @@
# GLib based applications export their desktop-entry name. In comparison to the appname, # GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized. # the desktop-entry won't get localized.
# #
# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level.
# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules:
# override_pause_level = X
# SCRIPTING # SCRIPTING
# You can specify a script that gets run when the rule matches by # You can specify a script that gets run when the rule matches by
# setting the "script" option. # setting the "script" option.
@@ -483,4 +433,4 @@
# appname = "some_volume_notifiers" # appname = "some_volume_notifiers"
# set_stack_tag = "volume" # set_stack_tag = "volume"
# #
# vim: ft=cfg # vim: ft=cfg

View File

@@ -12,6 +12,7 @@ fade-out-step = 0.05;
fade-delta = 8; fade-delta = 8;
# opacity # opacity
transparent-clipping = false;
opacity-rule = [ opacity-rule = [
"90:class_g = 'Alacritty'" "90:class_g = 'Alacritty'"
]; ];