aboutsummaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-09 00:42:54 +0900
committersefidel <contact@sefidel.net>2022-01-09 00:42:54 +0900
commit7629d5e10f8b6b1e596231557d8e2de13eb19f46 (patch)
tree0339d5cb48602307da01873edb77ce7d7bd5bed6 /home
parentcf2b4a8485d6d1bd3871da67111da0740cc8487c (diff)
downloadnixrc-7629d5e10f8b6b1e596231557d8e2de13eb19f46.zip
home/base: add dunst
Diffstat (limited to 'home')
-rw-r--r--home/modules/profiles/base/config/dunst.nix47
-rw-r--r--home/modules/profiles/base/default.nix15
2 files changed, 58 insertions, 4 deletions
diff --git a/home/modules/profiles/base/config/dunst.nix b/home/modules/profiles/base/config/dunst.nix
new file mode 100644
index 0000000..6b018ab
--- /dev/null
+++ b/home/modules/profiles/base/config/dunst.nix
@@ -0,0 +1,47 @@
+{ neotheme }:
+
+with neotheme.colors;
+{
+ global = {
+ padding = 8;
+ width = "330";
+ height = "500";
+ origin = "top-right";
+ offset = "8x25";
+ notification_limit = 5;
+ frame_width = 2;
+ vertical_alignment = "center";
+ horizontal_padding = 8;
+ icon_position = "left";
+ corner_radius = 10;
+
+ markup = "full";
+ word_wrap = true;
+ show_indicators = false;
+ format = "<b>%s</b>\\n\\n%b";
+ font = "Dina 10";
+ frame_color = "#${color3}";
+ separator_color = "auto";
+ max_icon_size = 80;
+ };
+
+ urgency_low = {
+ foreground = "#${foreground}";
+ background = "#${background}";
+ frame_color = "#${color4}";
+ timeout = 4;
+ };
+
+ urgency_normal = {
+ foreground = "#${foreground}";
+ background = "#${background}";
+ frame_color = "#${color3}";
+ timeout = 8;
+ };
+
+ urgency_critical = {
+ foreground = "#${foreground}";
+ background = "#${background}";
+ frame_color = "#${color1}";
+ };
+}
diff --git a/home/modules/profiles/base/default.nix b/home/modules/profiles/base/default.nix
index b9fcde2..837e3be 100644
--- a/home/modules/profiles/base/default.nix
+++ b/home/modules/profiles/base/default.nix
@@ -152,10 +152,17 @@ in
};
};
- services.wlsunset = {
- enable = true;
- latitude = "36.5";
- longitude = "127.2";
+ services = {
+ dunst = {
+ enable = true;
+ settings = import ./config/dunst.nix { inherit neotheme; };
+ };
+
+ wlsunset = {
+ enable = true;
+ latitude = "36.5";
+ longitude = "127.2";
+ };
};
nixpkgs.allowedUnfree = [ "symbola" ];