From 309a329b7b5f4da5aacbc2ed90164943619475ca Mon Sep 17 00:00:00 2001 From: finga Date: Tue, 20 Jun 2023 14:44:58 +0200 Subject: [PATCH 1/3] dunst: Create `dunst` config In order to improve visibility of notifications add a custom configuration. --- .config/dunst/dunstrc | 20 ++++++++++++++++++++ .gitignore.d/i3 | 1 + 2 files changed, 21 insertions(+) create mode 100644 .config/dunst/dunstrc diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc new file mode 100644 index 0000000..c072b8c --- /dev/null +++ b/.config/dunst/dunstrc @@ -0,0 +1,20 @@ +[global] + follow = keyboard + scale = 2 + idle_threshold = 3 + font = Monospace 12 + history_length = 100 + corner_radius = 5 + ignore_dbusclose = true + timeout = 0 + background = "#333333" + frame_color = "#009900" + +[urgency_low] + foreground = "#009900" + +[urgency_normal] + foreground = "#ffee33" + +[urgency_critical] + foreground = "#aa3333" diff --git a/.gitignore.d/i3 b/.gitignore.d/i3 index 9cae4fa..41822eb 100644 --- a/.gitignore.d/i3 +++ b/.gitignore.d/i3 @@ -1,4 +1,5 @@ * +!/.config/dunst/dunstrc !/.config/i3/config !/.config/i3status-rust/config.toml !/.config/i3status-rust/secondary.toml From a643341995979e65291a01965e59ac58e3702f3b Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 23 Jun 2023 11:12:07 +0200 Subject: [PATCH 2/3] dunst: Add keybindings for dunst In order to control dunst from the keyboard create some keybindings. --- .config/i3/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index b393390..ffbc375 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -165,6 +165,11 @@ bindsym XF86AudioPlay exec --no-startup-id mpc toggle bindsym XF86AudioPrev exec --no-startup-id mpc prev bindsym XF86AudioStop exec --no-startup-id mpc stop +# dunst control +bindsym $mod+period exec dunstctl close +bindsym $mod+Shift+period exec dunstctl close-all +bindsym $mod+grave exec dunstctl history-pop + # open login screen on another vt (virtual terminal) bindsym $mod+Shift+XF86HomePage exec "dm-tool switch-to-greeter" From ff4d1cafc8d5b5676aeb65d3aff58c0cc5864ca3 Mon Sep 17 00:00:00 2001 From: finga Date: Fri, 23 Jun 2023 14:49:31 +0200 Subject: [PATCH 3/3] dunst: Adapt config for desktop Use different settings for desktop at home. --- .config/dunst/dunstrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index c072b8c..262b011 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -1,12 +1,12 @@ [global] follow = keyboard - scale = 2 + scale = 1 idle_threshold = 3 - font = Monospace 12 + font = Monospace 10 history_length = 100 corner_radius = 5 ignore_dbusclose = true - timeout = 0 + timeout = 30 background = "#333333" frame_color = "#009900"