From 6a1e5cbc3b94d372c98e8d115a24d6da03e07088 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Tue, 4 Mar 2025 21:29:13 +0100 Subject: [PATCH] dunst --- dunst/dunstrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ i3/config | 3 ++- 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 dunst/dunstrc diff --git a/dunst/dunstrc b/dunst/dunstrc new file mode 100644 index 0000000..8bd0147 --- /dev/null +++ b/dunst/dunstrc @@ -0,0 +1,45 @@ +[global] + width = (0, 600) + height = (0, 300) + origin = top-right + offset = (10, 50) + notification_limit = 200 # Maximum number of notification (0 means no limit) + frame_width = 1 # Defines width in pixels of frame around the notification window. Set to 0 to disable. + frame_color = "#788388" + separator_color = #263238 + font = Noto Sans 10 + + # The format of the message. Possible variables are: + # %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 + # Markup is allowed + format = "%s %p\n%b" + icon_position = off # Align icons left/right/off + icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/ # Paths to default icons. + sticky_history = no + history_length = 100 # Maximum amount of notifications kept in history + +[urgency_low] + background = "#263238" + foreground = "#556064" + timeout = 20 + default_icon = dialog-information + +[urgency_normal] + background = "#263238" + foreground = "#F9FAF9" + timeout = 40 + override_pause_level = 30 + default_icon = dialog-information + +[urgency_critical] + background = "#D62929" + foreground = "#F9FAF9" + timeout = 0 + override_pause_level = 60 + default_icon = dialog-warning +# vim: ft=cfg diff --git a/i3/config b/i3/config index 7486675..1d12eca 100644 --- a/i3/config +++ b/i3/config @@ -91,7 +91,8 @@ bindsym $mod+F2 exec qutebrowser bindsym $mod+F5 exec pavucontrol bindsym $mod+F6 exec quodlibet bindsym $mod+F7 exec wezterm -e ncspot -bindsym $mod+Shift+F10 --release exec "killall dunst; exec notify-send 'restart dunst'" +bindsym $mod+F10 exec dunstctl history-pop +bindsym $mod+Shift+F10 exec dunstctl close-all bindsym $mod+p exec pcmanfm bindsym $mod+Shift+p exec wezterm -e ranger bindsym $mod+c exec qalculate-gtk