home,dunst: dunstrc -> home-manager options

This commit is contained in:
Guanran Wang 2023-11-04 21:55:30 +08:00
parent 7c3280f7c7
commit 37e342f4e2
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
5 changed files with 27 additions and 62 deletions

View file

@ -1,57 +0,0 @@
#
# Dunst config
# ~/.config/dunst/dunstrc
# modified from https://github.com/end-4/dots-hyprland/blob/main/.config/dunst/dunstrc
#
[global]
follow = mouse
geometry = "280x50-20+90"
indicate_hidden = no
separator_height = 2
separator_color = yes
padding = 12
horizontal_padding = 12
frame_width = 2
font = Monospace 10
line_height = 4
markup = full
format = "<b>%s</b>\n%b"
alignment = left
show_age_threshold = 60
word_wrap = yes
ignore_newline = no
stack_duplicates = yes
hide_duplicate_count = no
icon_position = left
icon_path = /home/guanranwang/.local/share/icons/dunst
show_indicators = no
icon_position = left
max_icon_size = 48
sticky_history = yes
history_length = 20
title = Dunst
class = Dunst
corner_radius = 10
offset = 8x8
# Tokyonight
[global]
frame_color = "#c0caf5"
separator_color = frame
[urgency_low]
timeout = 4
background = "#1a1b26"
foreground = "#c0caf5"
[urgency_normal]
timeout = 8
background = "#1a1b26"
foreground = "#c0caf5"
[urgency_critical]
timeout = 0
background = "#1a1b26"
foreground = "#c0caf5"
frame_color = "#FAB387"

View file

@ -29,10 +29,6 @@ in {
source = "${configPath}/rofi"; source = "${configPath}/rofi";
recursive = true; recursive = true;
}; };
"dunst" = {
source = "${configPath}/dunst";
recursive = true;
};
"makepkgs.conf" = { "makepkgs.conf" = {
source = "${configPath}/makepkgs.conf"; source = "${configPath}/makepkgs.conf";

View file

@ -0,0 +1,26 @@
{...}: {
services.dunst = {
enable = true;
settings = {
global = {
padding = 10;
horizontal_padding = 10;
frame_width = 2;
font = "Monospace 10";
icon_path = "/home/guanranwang/.local/share/icons/dunst";
corner_radius = 10;
max_icon_size = 128; # weird bug, default value (128) not working
};
# Tokyonight
global = {
frame_color = "#c0caf5";
background = "#1a1b26";
foreground = "#c0caf5";
};
urgency_critical.frame_color = "#fab387";
};
};
}

View file

@ -12,7 +12,6 @@
# x11 + wayland # x11 + wayland
rofi-wayland rofi-wayland
rofi-power-menu rofi-power-menu
dunst
pamixer pamixer
brightnessctl brightnessctl
playerctl playerctl

View file

@ -4,6 +4,7 @@
../home.nix ../home.nix
../dotfiles.nix ../dotfiles.nix
../dunst.nix
../fonts.nix ../fonts.nix
../i18n.nix ../i18n.nix
../sway.nix ../sway.nix