From f33a2df7b9f630547ba081cdc2b3de5e8f6e77c1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 26 Sep 2022 16:05:48 -0700 Subject: Switch rincewind over to using Guix Home --- oni/home/services/dunst.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) (limited to 'oni/home/services/dunst.scm') diff --git a/oni/home/services/dunst.scm b/oni/home/services/dunst.scm index 079f40b..3e14e93 100644 --- a/oni/home/services/dunst.scm +++ b/oni/home/services/dunst.scm @@ -11,7 +11,8 @@ #:use-module (guix gexp) #:export (home-dunst-service-type - home-dunst-configuration)) + home-dunst-configuration + home-dunst-default-service)) (define (color? value) (and (string? value) @@ -248,3 +249,57 @@ horizontal axis.") home-dunst-shepherd-service))) (default-value (home-dunst-configuration)) (description "Configure dunst"))) + +(define home-dunst-default-service + (service home-dunst-service-type + (home-dunst-configuration + (font "Fantasque Sans Mono 15") + (markup 'full) + (format "%s\\n\\n%b") + (width '(0 600)) + (idle-threshold 120) + (padding 15) + (horizontal-padding 15) + (separator-color 'auto) + (dmenu "rofi -dmenu -p dunst:") + (browser "firefox") + (icon-path '("/usr/share/icons/gnome/24x24/status/" + "/usr/share/icons/gnome/24x24/devices/" + "/usr/share/icons/hicolor/24x24/apps/")) + (frame-width 2) + (frame-color "#3d3d3d") + (max-icon-size 24) + (corner-radius 10) + (rules + '(("urgency_low" + (background "#405c2e") + (foreground "#eeeeec") + (timeout 10)) + ("urgency_normal" + (background "#222224") + (foreground "#eeeeec") + (timeout 10)) + ("urgency_critical" + (background "#973732") + (foreground "#eeeeec") + (timeout 0)) + ("Emacs" + (appname "Emacs") + (background "#7f5ab6") + (foreground "#fafafa")) + ("Metal Express Radio" + (appname "Metal Express Radio") + (background "#ef4136") + (foreground "#ffffff")) + ("Syncthing" + (appname "Syncthing GTK") + (background "#337ab7") + (foreground "#ffffff")) + ("Lollypop" + (appname "Lollypop") + (background "#fd3e75") + (foreground "#ffffff")) + ("gPodder" + (appname "gPodder") + (background "#7f5785") + (foreground "#ffffff"))))))) -- cgit v1.2.3-54-g00ecf