From dc181f50087c80d53eea299733c583a3b52971c6 Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Mon, 29 Dec 2025 21:42:34 +1100 Subject: [PATCH] added dunst --- .config/.gitignore | 3 +- .config/dunst/.gitignore | 1 + .config/dunst/dunstrc | 74 ++++++++++++++++++++++++++++++++++++ .config/hypr/hyprland.conf | 2 +- .config/hypr/restart_apps.sh | 3 -- 5 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 .config/dunst/.gitignore create mode 100644 .config/dunst/dunstrc diff --git a/.config/.gitignore b/.config/.gitignore index f6c713b..91693c7 100644 --- a/.config/.gitignore +++ b/.config/.gitignore @@ -3,6 +3,8 @@ !alacritty/ !bat/ !btop/ +!dunst/ +!hypr/ !i3/ !neofetch/ !picom/ @@ -12,5 +14,4 @@ !tmux/ !waybar/ !wofi/ -!hypr/ !zsh-vim-mode/ diff --git a/.config/dunst/.gitignore b/.config/dunst/.gitignore new file mode 100644 index 0000000..f9be8df --- /dev/null +++ b/.config/dunst/.gitignore @@ -0,0 +1 @@ +!* diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..29ba7f6 --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,74 @@ +# For defaults and description of each option, see the link bellow +# https://github.com/dunst-project/dunst/blob/master/dunstrc + +[global] +# Display +monitor = 0 +follow = none +width = 350 +height = (0, 300) +origin = top-right +offset = (35, 35) +indicate_hidden = yes +notification_limit = 5 +gap_size = 12 +padding = 12 +horizontal_padding = 20 +frame_width = 1 +sort = no + +# Progress bar +progress_bar = true +progress_bar_frame_width = 0 +progress_bar_corner_radius = 3 + +# Colors +foreground = "#cdd6f4" +frame_color = "#181825" +highlight = "#89b4fa, #82dceb" + +# Text +font = Noto Sans CJK JP 10 +markup = full +format = "%a\n%s\n%b" +alignment = left +vertical_alignment = center +show_age_threshold = -1 +hide_duplicate_count = false + +# Icon +icon_position = left +min_icon_size = 54 +max_icon_size = 80 +icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/:/usr/share/icons/Adwaita/16x16/legacy/ +icon_corner_radius = 4 + +# Misc/Advanced +dmenu = wofi --show drun --prompt 'Open with' +corner_radius = 10 + +# Mouse +mouse_left_click = close_current +mouse_middle_click = do_action, close_current +mouse_right_click = close_all + +[urgency_low] +background = "#383c4af0" +timeout = 3 + +[urgency_normal] +background = "#383c4af0" +timeout = 8 + +[urgency_critical] +background = "#d20f39" +frame_color = "#eff1f5" +timeout = 0 + +# Rules +[fullscreen_delay_everything] +fullscreen = delay + +[fullscreen_show_critical] +msg_urgency = critical +fullscreen = show diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index a34e835..ff35a78 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -42,7 +42,7 @@ $menu = wofi --show drun --insensitive --allow-images # exec-once = $terminal # exec-once = nm-applet & # exec-once = waybar & hyprpaper & firefox -$autostart = "waybar & hyprpaper" +$autostart = "waybar & hyprpaper & dunst" exec-once = sh -c "$autostart" diff --git a/.config/hypr/restart_apps.sh b/.config/hypr/restart_apps.sh index b8b1e59..1799aac 100755 --- a/.config/hypr/restart_apps.sh +++ b/.config/hypr/restart_apps.sh @@ -1,7 +1,4 @@ #!/usr/bin/env bash -LOG=$HOME/.config/hypr/temp.log -exec > $LOG 2>&1 - RUN_STRING=$1 KILL_STRING=${RUN_STRING//" & "/" "} killall $KILL_STRING || true