aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/switch.d/dunst
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-09 14:16:43 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-09 14:16:43 +0100
commit3be98e5ef5247042fd219dded572910305b1a5a4 (patch)
tree43b0f170be0cae8559e582415f9575828ca4e6b3 /.local/share/mode/switch.d/dunst
parent2dc5ec7085e1c1bbc406f2089dddf8f6e1d9d206 (diff)
big restructure of `mode` scripts
Diffstat (limited to '.local/share/mode/switch.d/dunst')
-rwxr-xr-x.local/share/mode/switch.d/dunst21
1 files changed, 21 insertions, 0 deletions
diff --git a/.local/share/mode/switch.d/dunst b/.local/share/mode/switch.d/dunst
new file mode 100755
index 0000000..2a5a60e
--- /dev/null
+++ b/.local/share/mode/switch.d/dunst
@@ -0,0 +1,21 @@
+#!/bin/sh
+cat "$XDG_CONFIG_HOME/dunst/base" - << EOF > "$XDG_CONFIG_HOME/dunst/dunstrc"
+frame_color = "$color0"
+
+[urgency_low]
+background = "$bg"
+foreground = "$fg"
+timeout = 10
+
+[urgency_normal]
+background = "$bg"
+foreground = "$fg"
+timeout = 10
+
+[urgency_critical]
+background = "$color1"
+foreground = "$bg"
+frame_color = "$color1"
+timeout = 0
+EOF
+