mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-31 07:11:28 -04:00
make hm-module reload on change
This commit is contained in:
parent
b1a49f8710
commit
ff2ea0a056
1 changed files with 6 additions and 0 deletions
|
|
@ -100,6 +100,12 @@ in {
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"mango/config.conf" = lib.mkIf (cfg.settings != "") {
|
"mango/config.conf" = lib.mkIf (cfg.settings != "") {
|
||||||
text = cfg.settings;
|
text = cfg.settings;
|
||||||
|
onChange = ''
|
||||||
|
XDG_CURRENT_DESKTOP=''${XDG_CURRENT_DESKTOP}
|
||||||
|
if [[ $XDG_CURRENT_DESKTOP == "mango" ]]; then
|
||||||
|
mmsg -d reload-config
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
"mango/autostart.sh" = lib.mkIf (cfg.autostart_sh != "") {
|
"mango/autostart.sh" = lib.mkIf (cfg.autostart_sh != "") {
|
||||||
source = autostart_sh;
|
source = autostart_sh;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue