aboutsummaryrefslogtreecommitdiffstats
path: root/home/dunst
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2024-05-23 13:56:00 +0300
committerPetri Hienonen <petri.hienonen@gmail.com>2025-11-30 12:29:57 +0200
commit08297376a85a1719518507e54fca9de954d2376a (patch)
tree3b9c58304b40248533bbb2bb5b7bad2da9da1ff0 /home/dunst
parent75c2af4aedd2ac5c2cfc74b346625fa4b265541d (diff)
downloadnixos-08297376a85a1719518507e54fca9de954d2376a.tar.zst
Agenix configuration
Diffstat (limited to 'home/dunst')
-rw-r--r--home/dunst/default.nix157
1 files changed, 102 insertions, 55 deletions
diff --git a/home/dunst/default.nix b/home/dunst/default.nix
index 8a5f4ad..4843a90 100644
--- a/home/dunst/default.nix
+++ b/home/dunst/default.nix
@@ -1,74 +1,121 @@
-{ config, pkgs, ... }: {
+{ config, pkgs, ... }:
+{
services.dunst = {
enable = true;
+ iconTheme = {
+ name = "Twitter Color Emoji";
+ package = pkgs.twitter-color-emoji;
+ };
+
settings = {
global = {
- alignment = "center";
- allow_markup = true;
- browser =
- "${config.programs.firefox.package}/bin/firefox -new-tab";
- bounce_freq = 0;
- corner_radius = 5;
- dmenu = "${pkgs.rofi}/bin/rofi -dmenu";
- follow = "mouse";
- font = "Fira Code 10";
- format = ''
- <b>%s</b>
- %b
- %p'';
- frame_color = "#555555";
- frame_width = 2;
- geometry = "400-30+30";
- horizontal_padding = 15;
- icon_position = "off";
- idle_threshold = 120;
- ignore_newline = false;
- indicate_hidden = true;
- line_height = 0;
- markup = "full";
- max_icon_size = 130;
- padding = 15;
- separator_color = "frame";
- separator_height = 2;
- show_age_threshold = 60;
- shrink = true;
- sort = true;
- startup_notification = false;
- sticky_history = true;
+ ### Display ###
+ monitor = 0;
+ follow = "none";
+ width = "(100, 500)";
+ height = "(0, 300)";
+ origin = "top-right";
+ offset = "(5, 15)";
+ scale = 0;
+ notification_limit = 10;
+
+ ### Progress bar ###
+ progress_bar = true;
+ progress_bar_height = 14;
+ progress_bar_frame_width = 0;
+ progress_bar_min_width = 100;
+ progress_bar_max_width = 500;
+ progress_bar_corner_radius = 50;
+ progress_bar_corners = "bottom-left,top-right";
+ icon_corner_radius = 0;
+ icon_corners = "all";
+
+ indicate_hidden = "yes";
transparency = 0;
- word_wrap = true;
- };
+ separator_height = 6;
+ padding = 10;
+ horizontal_padding = 8;
+ text_icon_padding = 12;
+ frame_width = 1;
+ frame_color = "#a0a0a0";
+ gap_size = 6;
+ separator_color = "frame";
+ corner_radius = 10;
+ corners = "bottom,top-left";
- frame = {
- width = 2;
- color = "#83a598";
+ ### Text ###
+ font = "Iosevka Nerd Font";
+ markup = "full";
+ format = "<b>%s</b>\n%b";
+ alignment = "left";
+ vertical_alignment = "center";
+ word_wrap = "yes";
+ ellipsize = "middle";
+ ignore_newline = "no";
+ line_height = 0;
+ show_age_threshold = -1;
+ stack_duplicates = true;
+ hide_duplicate_count = false;
+ show_indicators = "yes";
+
+ ### Icons ###
+ icon_position = "right";
+ min_icon_size = 32;
+ max_icon_size = 128;
+ enable_recursive_icon_lookup = true;
+ icon_theme = "Twitter Color Emoji";
+
+ ### History ###
+ sticky_history = "yes";
+ history_length = 30;
+
+ ### Behavior ###
+ sort = "yes";
+ idle_threshold = 120;
+ always_run_script = true;
+
+ ### Browser & Menu ###
+ browser = "${pkgs.firefox}/bin/firefox -new-tab";
+ dmenu = "${pkgs.walker}/bin/walker --modules applications,translation,webesearch,clipboard,finder";
+
+ ### Misc ###
+ title = "Dunst";
+ class = "Dunst";
+ startup_notification = true;
+ ignore_dbusclose = false;
+ force_xwayland = false;
+ force_xinerama = false;
+ per_monitor_dpi = false;
+
+ ### Mouse ###
+ mouse_left_click = "close_current";
+ mouse_middle_click = "do_action,close_current";
+ mouse_right_click = "close_all";
};
urgency_low = {
- frame_color = "#fabd2f";
- background = "#282828";
- foreground = "#ebdbb2";
- timeout = 5;
+ background = "#222222";
+ foreground = "#ffffff";
+ highlight = "#722ae6,#e4b5cb";
+ timeout = 20;
};
urgency_normal = {
- background = "#282828";
- foreground = "#ebdbb2";
- timeout = 15;
+ background = "#222222";
+ foreground = "#ffffff";
+ frame_color = "#5e5086";
+ highlight = "#722ae6,#e4b5cb";
+ timeout = 20;
+ override_pause_level = 30;
};
urgency_critical = {
- background = "#282828";
- foreground = "#ebdbb2";
- frame_color = "#CC241D";
+ background = "#222222";
+ foreground = "#ffffff";
+ frame_color = "#d54e53";
+ highlight = "#d54e53,#f0f0f0";
timeout = 0;
- };
-
- shortcuts = {
- close = "ctrl+space";
- close_all = "ctrl+shift+space";
- history = "ctrl+grave";
- context = "ctrl+shift+period";
+ override_pause_level = 60;
};
};
};