From ac3769d21c3dc8beafbcf9d714dd231f2f665469 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 11 May 2023 00:29:03 -0400 Subject: [PATCH] nix: Nixify dunst --- dunst/.config/dunst/wal.sh | 8 ---- dunst/.config/wal/templates/dunstrc | 62 ----------------------------- dunst/README.md | 16 -------- modules/desktop.nix | 18 +++++++++ 4 files changed, 18 insertions(+), 86 deletions(-) delete mode 100755 dunst/.config/dunst/wal.sh delete mode 100644 dunst/.config/wal/templates/dunstrc delete mode 100644 dunst/README.md diff --git a/dunst/.config/dunst/wal.sh b/dunst/.config/dunst/wal.sh deleted file mode 100755 index 249d3882..00000000 --- a/dunst/.config/dunst/wal.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# Symlink dunst config -ln -sf ~/.cache/wal/dunstrc ~/.config/dunst/dunstrc - -# Restart dunst with the new color scheme -pkill dunst -dunst & diff --git a/dunst/.config/wal/templates/dunstrc b/dunst/.config/wal/templates/dunstrc deleted file mode 100644 index 033d8353..00000000 --- a/dunst/.config/wal/templates/dunstrc +++ /dev/null @@ -1,62 +0,0 @@ -# New Start: A modern Arch workflow built with an emphasis on functionality. -# Copyright (C) 2018 Donovan Glover - -# NOTE: This file is automatically generated by pywal. Do not edit it by hand. - -[global] - # Make the width 3740 (3840 - 100), have 50 left margin and 95 above (for HiDPI, below this is normal DPI) - # geometry = "3740x5-50+95" - geometry = "1870x5-25+45" - - # Increase width of dunst notifications - width = 350 - - # Show multiple notifications in the same box - separator_height = 0 - - # Add vertical padding to the inside of the notification - padding = 24 - - # Add horizontal padding for when the text gets long enough - horizontal_padding = 24 - - # The frame color and width of the notification - frame_color = "{color8}" - frame_width = 3 - - # How long a user needs to be idle for sticky notifications - idle_threshold = 120 - - # Font and typography settings - font = Maple Mono 12 - alignment = center - word_wrap = yes - - # Transparency - transparency = 5 - - # Format for how notifications will be displayed - # Usage: `notify-send 'Title' 'Summary'` - format = "%s: %b" - - # Allow some HTML tags like and in notifications - markup = full - - # Increase the size of cover notifications - min_icon_size = 128 - max_icon_size = 128 - -# Set the background and foreground (text) color for all notifications -[urgency_low] - background = "{background}" - foreground = "{foreground}" - -[urgency_normal] - background = "{background}" - foreground = "{foreground}" - -[urgency_critical] - background = "{background}" - foreground = "{foreground}" - -# vim:ft=cfg diff --git a/dunst/README.md b/dunst/README.md deleted file mode 100644 index b9894a8d..00000000 --- a/dunst/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# dunst - -[dunst][dunst] is used to display notifications on your desktop. - -## Use Cases - -dunst can be used to: - -- Display messages sent with `notify-send` -- Strategically add notifications to your rice screenshots - -You should not use dunst if: - -- Your desktop environment already includes a notification daemon - -[dunst]: https://github.com/dunst-project/dunst diff --git a/modules/desktop.nix b/modules/desktop.nix index fb4ce810..d042ea6c 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -84,6 +84,24 @@ }; services.dunst = { enable = true; + settings = { + global = { + geometry = "1870x5-25+45"; + width = 350; + separator_height = 5; + padding = 24; + horizontal_padding = 24; + frame_width = 3; + idle_threshold = 120; + alignment = "center"; + word_wrap = "yes"; + transparency = 5; + format = "%s: %b"; + markup = "full"; + min_icon_size = 128; + max_icon_size = 128; + }; + }; }; programs.waybar = { enable = true;