From 09b174232f958f0e9acefc39f4b48b415d537a89 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 17 Mar 2023 22:44:05 +0530 Subject: [PATCH] replace mako with dunst --- home/sway/default.nix | 2 +- home/sway/dunst.nix | 83 +++++++++++++++++++++++++++++++++++++++++++ home/sway/mako.nix | 22 ------------ 3 files changed, 84 insertions(+), 23 deletions(-) create mode 100644 home/sway/dunst.nix delete mode 100644 home/sway/mako.nix diff --git a/home/sway/default.nix b/home/sway/default.nix index 1edb38b..56327e6 100644 --- a/home/sway/default.nix +++ b/home/sway/default.nix @@ -5,7 +5,7 @@ ./gnome-keyring.nix ./gtk.nix ./kanshi.nix - ./mako.nix + ./dunst.nix ./rofi ./swayidle.nix ./wallpapers.nix diff --git a/home/sway/dunst.nix b/home/sway/dunst.nix new file mode 100644 index 0000000..8f97b47 --- /dev/null +++ b/home/sway/dunst.nix @@ -0,0 +1,83 @@ +{ config, pkgs, ... }: +let + dmenu = "${config.programs.rofi.package}/bin/rofi -dmenu"; + firefox = "${config.programs.firefox.package}/bin/firefox"; +in +{ + services.dunst = { + enable = true; + iconTheme.name = config.gtk.iconTheme.name; + iconTheme.package = config.gtk.iconTheme.package; + settings = { + global = { + font = "FiraCode Nerd Font 11"; + monitor = 0; + width = 300; + height = 300; + origin = "top-right"; + offset = "10x50"; + scale = 0; + notification_limit = 0; + progress_bar = true; + progress_bar_height = 10; + progress_bar_frame_width = 1; + progress_bar_min_width = 150; + progress_bar_max_width = 300; + indicate_hidden = "yes"; + transparency = 15; + separator_height = 1; + padding = 8; + horizontal_padding = 10; + text_icon_padding = 0; + frame_width = 0; + + frame_color = "#282a36"; + separator_color = "frame"; + sort = "yes"; + idle_threshold = 120; + line_height = 0; + markup = "full"; + format = ''%s %p\n%b''; + alignment = "left"; + vertical_alignment = "center"; + show_age_threshold = 60; + ellipsize = "middle"; + ignore_newline = "no"; + stack_duplicates = true; + hide_duplicate_count = false; + show_indicators = "yes"; + icon_position = "left"; + min_icon_size = 0; + max_icon_size = 64; + sticky_history = "yes"; + history_length = 20; + dmenu = "${dmenu} -p dunst"; + browser = "${firefox} -new-tab"; + always_run_script = true; + title = "Dunst"; + class = "Dunst"; + corner_radius = 0; + ignore_dbusclose = false; + mouse_left_click = "close_current"; + mouse_middle_click = "do_action, close_current"; + mouse_right_click = "close_all"; + }; + urgency_low = { + background = "#282a36"; + foreground = "#6272a4"; + timeout = 10; + }; + urgency_normal = { + background = "#282a36"; + foreground = "#bd93f9"; + timeout = 10; + }; + urgency_critical = { + background = "#ff5555"; + foreground = "#f8f8f2"; + frame_color = "#ff5555"; + timeout = 0; + }; + }; + }; +} diff --git a/home/sway/mako.nix b/home/sway/mako.nix deleted file mode 100644 index 0d1676a..0000000 --- a/home/sway/mako.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ pkgs, ... }: - -{ - services.mako = { - enable = true; - font = "FiraCode Nerd Font 11"; - backgroundColor = "#282A36"; - borderColor = "#282A36"; - progressColor = "over #313244"; - textColor = "#44475A"; - extraConfig = '' - [urgency=low] - border-color=#282a36 - - [urgency=normal] - border-color=#f1fa8c - - [urgency=high] - border-color=#ff5555 - ''; - }; -}