From 2bf32d059d594f22940fc712cd9d6bd3496e4bdc Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 12 Jul 2023 05:53:20 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B3=BB=E7=BB=9F=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E9=85=8D=E7=BD=AE;polybar=E8=B0=83=E4=B8=BA=E5=8D=8A?= =?UTF-8?q?=E9=80=8F=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/config/dunst/dunstrc | 64 ++++++++++++++++++++++++++++++++++ home/config/polybar/colors.ini | 6 ++-- 2 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 home/config/dunst/dunstrc diff --git a/home/config/dunst/dunstrc b/home/config/dunst/dunstrc new file mode 100644 index 0000000..5f5d592 --- /dev/null +++ b/home/config/dunst/dunstrc @@ -0,0 +1,64 @@ +## 通知管理配置 + +# -------------------------------------------------- +# dunstify 常规用法 +# 显示应用名、summary, body +# dunstify -a AppName "notice summary" "notice body" +# 显示应用名、summary, body, 进度条(0~100, curr 88) +# dunstify -a AppName -h int:value:88 "notice summary" "notice body" +# 显示自定义图标 +# dunstify -i google-chrome -a Chrome title body +# -------------------------------------------------- + +[global] + # 通知跟随有键盘焦点的显示器 + follow = keyboard + + width = (300, 500) + # 默认就是8了 + # padding = 8 + corner_radius = 3 + transparency = 25 + # 多个通知之间的间隔 + gap_size = 4 + + # 边框样式 + frame_width = 1 + frame_color = "#86909b" + + # 进度条 + progress_bar_height = 5 + progress_bar_horizontal_alignment = left + progress_bar_min_width = 300 + progress_bar_max_width = 500 + progress_bar_frame_width = 0 + + font = Monospace 12 + + format = "%a\n%s\n%b" + + max_icon_size = 48 + icon_theme = "Reversal-green-dark" + enable_recursive_icon_lookup = true + + mouse_left_click = do_action + mouse_right_click = close_current + + + +[urgency_low] + background="#f2f5fc" + foreground="#57606f" + timeout = 5 + + +[urgency_normal] + background="#f2f5fc" + foreground="#57606f" + timeout = 8 + + +[urgency_critical] + background="#f2f5fc" + foreground="#f33e22" + timeout = 0 diff --git a/home/config/polybar/colors.ini b/home/config/polybar/colors.ini index 83e8264..3e8f39c 100644 --- a/home/config/polybar/colors.ini +++ b/home/config/polybar/colors.ini @@ -1,9 +1,9 @@ [color] -background = #475569 +background = #47556980 foreground = #d8dee9 -altbackground = #55657d -altbackground2 = #3d495b +altbackground = #55657d80 +altbackground2 = #3d495b80 altforeground = #768bb2 accent = #81a1c1