fix(dunst): use dunstrc.d
This commit is contained in:
parent
d23b0ad45e
commit
9fb650e34f
3 changed files with 29 additions and 30 deletions
|
|
@ -110,7 +110,8 @@ in
|
||||||
link "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf"
|
link "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf"
|
||||||
link "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css"
|
link "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css"
|
||||||
link "$cfg/fuzzel/themes/$theme.ini" "$cfg/fuzzel/themes/theme.ini"
|
link "$cfg/fuzzel/themes/$theme.ini" "$cfg/fuzzel/themes/theme.ini"
|
||||||
link "$cfg/dunst/themes/$theme.conf" "$cfg/dunst/themes/theme.conf"
|
$DRY_RUN_CMD mkdir -p "$cfg/dunst/dunstrc.d"
|
||||||
|
link "$cfg/dunst/themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
||||||
''}
|
''}
|
||||||
link "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config"
|
link "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config"
|
||||||
link "$cfg/fzf/themes/$theme" "$cfg/fzf/themes/theme"
|
link "$cfg/fzf/themes/$theme" "$cfg/fzf/themes/theme"
|
||||||
|
|
|
||||||
|
|
@ -280,34 +280,30 @@ in
|
||||||
|
|
||||||
services.dunst = {
|
services.dunst = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = { };
|
settings = {
|
||||||
};
|
global = {
|
||||||
xdg.configFile."dunst/dunstrc" = lib.mkForce {
|
font = "SF Pro Display 13";
|
||||||
text = ''
|
width = "(0, 400)";
|
||||||
include ${config.xdg.configHome}/dunst/themes/theme.conf
|
height = "(0, 120)";
|
||||||
|
origin = "top-right";
|
||||||
[global]
|
offset = "(16, 16)";
|
||||||
font = SF Pro Display 13
|
padding = 10;
|
||||||
width = (0, 400)
|
horizontal_padding = 10;
|
||||||
height = (0, 120)
|
frame_width = 3;
|
||||||
origin = top-right
|
separator_height = 1;
|
||||||
offset = (16, 16)
|
gap_size = 8;
|
||||||
padding = 10
|
corner_radius = 0;
|
||||||
horizontal_padding = 10
|
alignment = "left";
|
||||||
frame_width = 3
|
ellipsize = "end";
|
||||||
separator_height = 1
|
icon_position = "left";
|
||||||
gap_size = 8
|
max_icon_size = 32;
|
||||||
corner_radius = 0
|
};
|
||||||
alignment = left
|
ctl = {
|
||||||
ellipsize = end
|
appname = "ctl";
|
||||||
icon_position = left
|
icon_position = "off";
|
||||||
max_icon_size = 32
|
format = "%s";
|
||||||
|
};
|
||||||
[ctl]
|
};
|
||||||
appname = ctl
|
|
||||||
icon_position = off
|
|
||||||
format = %s
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
xdg.configFile."dunst/themes/midnight.conf".text = mkDunstTheme config.palettes.midnight;
|
xdg.configFile."dunst/themes/midnight.conf".text = mkDunstTheme config.palettes.midnight;
|
||||||
xdg.configFile."dunst/themes/daylight.conf".text = mkDunstTheme config.palettes.daylight;
|
xdg.configFile."dunst/themes/daylight.conf".text = mkDunstTheme config.palettes.daylight;
|
||||||
|
|
|
||||||
|
|
@ -99,7 +99,9 @@ Linux)
|
||||||
|
|
||||||
dunst_themes="$cfg/dunst/themes"
|
dunst_themes="$cfg/dunst/themes"
|
||||||
[ -f "$dunst_themes/$theme.conf" ] && {
|
[ -f "$dunst_themes/$theme.conf" ] && {
|
||||||
ln -sf "$dunst_themes/$theme.conf" "$dunst_themes/theme.conf"
|
mkdir -p "$cfg/dunst/dunstrc.d"
|
||||||
|
ln -sf "$dunst_themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
||||||
|
pkill -x dunst 2>/dev/null; sleep 0.2
|
||||||
systemctl --user restart dunst
|
systemctl --user restart dunst
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue