From 33fc30bb02bc91f777b36f69df787389597c8990 Mon Sep 17 00:00:00 2001 From: oxypomme Date: Mon, 9 Oct 2023 13:48:41 +0200 Subject: [PATCH] feat: added dunst config --- dunst/dunstrc | 122 +++++++++++++++++++++++++++++++++++++++++++++++++ dunst/start.sh | 12 +++++ 2 files changed, 134 insertions(+) create mode 100644 dunst/dunstrc create mode 100755 dunst/start.sh diff --git a/dunst/dunstrc b/dunst/dunstrc new file mode 100644 index 0000000..afd7510 --- /dev/null +++ b/dunst/dunstrc @@ -0,0 +1,122 @@ +# See dunst(5) for all configuration options + +[global] +monitor = 0 +follow = mouse + +# Geometry +width = 500 +height = 300 + +origin = top-right +offset = 10x10 + +scale = 0 +notification_limit = 0 + +# Progress bar +progress_bar = true +progress_bar_height = 12 +progress_bar_frame_width = 2 +progress_bar_min_width = 150 +progress_bar_max_width = 300 + +# Appearance +indicate_hidden = yes +transparency = 0 +separator_height = 2 + +padding = 8 +horizontal_padding = 8 +text_icon_padding = 8 + +frame_width = 3 +gap_size = 4 +separator_color = "#1E1E1E" + +sort = yes +font = FiraCode Nerd Font Mono, Roboto 12 +line_height = 0 + +markup = full +format = "%s\n%b" +alignment = left +vertical_alignment = center +show_age_threshold = 60 + +ellipsize = middle +ignore_newline = no +stack_duplicates = true +hide_duplicate_count = false +show_indicators = yes + +### Icons ### + +enable_recursive_icon_lookup = true +icon_theme = Paper +icon_position = left + +min_icon_size = 16 +max_icon_size = 64 + +icon_path = /usr/share/icons/Paper/16x16/status/:/usr/share/icons/Paper/16x16/devices/ + +### History ### + +sticky_history = yes +history_length = 20 + +### Misc/Advanced ### + +dmenu = /usr/bin/rofi -dmenu -p dunst: + +# Browser for opening urls in context menu. +browser = /usr/bin/brave-browser + +# Always run rule-defined scripts, even if the notification is suppressed +always_run_script = true + +# Define the title of the windows spawned by dunst +title = Dunst + +# Define the class of the windows spawned by dunst +class = Dunst + +corner_radius = 0 +ignore_dbusclose = false + +### mouse + +mouse_left_click = close_current +# mouse_middle_click = do_action, close_current +mouse_right_click = close_all + +## shortcuts +history = ctrl+shift+comma +context = ctrl+shift+n + +[urgency_low] +# IMPORTANT: colors have to be defined in quotation marks. +# Otherwise the "#" and following would be interpreted as a comment. +background = "#171717" +foreground = "#e0def4" +frame_color = "#171717" +timeout = 12 +# Icon for notifications with low urgency, uncomment to enable +# default_icon = /usr/share/icons/Paper/16x16/status/messagebox_info.png + +[urgency_normal] +background = "#171717" +foreground = "#e0def4" +frame_color = "#171717" +timeout = 12 +# Icon for notifications with normal urgency, uncomment to enable +default_icon = /usr/share/icons/Paper/16x16/status/messagebox_info.png + +[urgency_critical] +background = "#eb6f92" +foreground = "#171717" +frame_color = "#eb6f92" +timeout = 3 +# Icon for notifications with critical urgency, uncomment to enable +default_icon = /usr/share/icons/Paper/16x16/status/messagebox_critical.png diff --git a/dunst/start.sh b/dunst/start.sh new file mode 100755 index 0000000..d7ab830 --- /dev/null +++ b/dunst/start.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +killall dunst +sleep 1 +dunst & +# sleep 15 + +# while true +# do +# (dunstctl history | jq '.data[0] | map({id: .id.data, name: .message.data, icon: .icon_path.data, appname: .appname.data})') 2>&1 | tee /tmp/dunst.status +# sleep 15 +# done