fix(dunst): actually trigger daylight, midnight themes
This commit is contained in:
parent
bcf88fac4e
commit
61d2bd2895
3 changed files with 10 additions and 4 deletions
|
|
@ -110,8 +110,7 @@ in
|
|||
link "$cfg/hypr/themes/$theme.conf" "$cfg/hypr/themes/theme.conf"
|
||||
link "$cfg/waybar/themes/$theme.css" "$cfg/waybar/themes/theme.css"
|
||||
link "$cfg/fuzzel/themes/$theme.ini" "$cfg/fuzzel/themes/theme.ini"
|
||||
$DRY_RUN_CMD mkdir -p "$cfg/dunst/dunstrc.d"
|
||||
link "$cfg/dunst/themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
||||
link "$cfg/dunst/themes/$theme.conf" "$cfg/dunst/themes/theme.conf"
|
||||
''}
|
||||
link "$cfg/sioyek/themes/$theme.config" "$cfg/sioyek/themes/theme.config"
|
||||
link "$cfg/fzf/themes/$theme" "$cfg/fzf/themes/theme"
|
||||
|
|
|
|||
|
|
@ -307,6 +307,14 @@ in
|
|||
};
|
||||
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/config".text = ''
|
||||
include ${config.xdg.configHome}/dunst/dunstrc
|
||||
include ${config.xdg.configHome}/dunst/themes/theme.conf
|
||||
'';
|
||||
|
||||
systemd.user.services.dunst.Service.ExecStart = lib.mkForce
|
||||
"${pkgs.dunst}/bin/dunst -config ${config.xdg.configHome}/dunst/config";
|
||||
xdg.configFile."waybar/themes/midnight.css".text = mkWaybarTheme config.palettes.midnight;
|
||||
xdg.configFile."waybar/themes/daylight.css".text = mkWaybarTheme config.palettes.daylight;
|
||||
|
||||
|
|
|
|||
|
|
@ -99,8 +99,7 @@ Linux)
|
|||
|
||||
dunst_themes="$cfg/dunst/themes"
|
||||
[ -f "$dunst_themes/$theme.conf" ] && {
|
||||
mkdir -p "$cfg/dunst/dunstrc.d"
|
||||
ln -sf "$dunst_themes/$theme.conf" "$cfg/dunst/dunstrc.d/theme.conf"
|
||||
ln -sf "$dunst_themes/$theme.conf" "$dunst_themes/theme.conf"
|
||||
systemctl --user restart dunst
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue