replace mako with dunst

This commit is contained in:
Adithya 2023-03-17 22:44:05 +05:30
parent 3ad3c05e91
commit 09b174232f
No known key found for this signature in database
GPG key ID: 0C7F35F4F821290F
3 changed files with 84 additions and 23 deletions

View file

@ -5,7 +5,7 @@
./gnome-keyring.nix ./gnome-keyring.nix
./gtk.nix ./gtk.nix
./kanshi.nix ./kanshi.nix
./mako.nix ./dunst.nix
./rofi ./rofi
./swayidle.nix ./swayidle.nix
./wallpapers.nix ./wallpapers.nix

83
home/sway/dunst.nix Normal file
View file

@ -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;
};
};
};
}

View file

@ -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
'';
};
}