mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
fix: night mode is now always available (#524)
This commit is contained in:
12
nix/niri.nix
12
nix/niri.nix
@@ -59,6 +59,11 @@ in {
|
|||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action = dms-ipc "audio" "micmute";
|
action = dms-ipc "audio" "micmute";
|
||||||
};
|
};
|
||||||
|
"Mod+Alt+N" = {
|
||||||
|
allow-when-locked = true;
|
||||||
|
action = dms-ipc "night" "toggle";
|
||||||
|
hotkey-overlay.title = "Toggle Night Mode";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
// lib.attrsets.optionalAttrs cfg.enableSystemMonitoring {
|
// lib.attrsets.optionalAttrs cfg.enableSystemMonitoring {
|
||||||
"Mod+M" = {
|
"Mod+M" = {
|
||||||
@@ -81,13 +86,6 @@ in {
|
|||||||
allow-when-locked = true;
|
allow-when-locked = true;
|
||||||
action = dms-ipc "brightness" "decrement" "5" "";
|
action = dms-ipc "brightness" "decrement" "5" "";
|
||||||
};
|
};
|
||||||
}
|
|
||||||
// lib.attrsets.optionalAttrs cfg.enableNightMode {
|
|
||||||
"Mod+Alt+N" = {
|
|
||||||
allow-when-locked = true;
|
|
||||||
action = dms-ipc "night" "toggle";
|
|
||||||
hotkey-overlay.title = "Toggle Night Mode";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user