aboutsummaryrefslogtreecommitdiffstats
path: root/home/dunst.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/dunst.nix')
-rw-r--r--home/dunst.nix122
1 files changed, 122 insertions, 0 deletions
diff --git a/home/dunst.nix b/home/dunst.nix
new file mode 100644
index 0000000..7eca193
--- /dev/null
+++ b/home/dunst.nix
@@ -0,0 +1,122 @@
+{ pkgs, ... }:
+{
+ services.dunst = {
+ enable = true;
+ iconTheme = {
+ name = "Twitter Color Emoji";
+ package = pkgs.twitter-color-emoji;
+ };
+
+ settings = {
+ global = {
+ ### 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;
+ 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";
+
+ ### 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 = {
+ background = "#222222";
+ foreground = "#ffffff";
+ highlight = "#722ae6,#e4b5cb";
+ timeout = 20;
+ };
+
+ urgency_normal = {
+ background = "#222222";
+ foreground = "#ffffff";
+ frame_color = "#5e5086";
+ highlight = "#722ae6,#e4b5cb";
+ timeout = 20;
+ override_pause_level = 30;
+ };
+
+ urgency_critical = {
+ background = "#222222";
+ foreground = "#ffffff";
+ frame_color = "#d54e53";
+ highlight = "#d54e53,#f0f0f0";
+ timeout = 0;
+ override_pause_level = 60;
+ };
+ };
+ };
+}