refactor(fruitbook): niri 대신에 dms로 잠금
All checks were successful
build / build (push) Successful in 1m47s
All checks were successful
build / build (push) Successful in 1m47s
This commit is contained in:
@@ -21,9 +21,5 @@ in {
|
|||||||
"DankMaterialShell/settings.json".source =
|
"DankMaterialShell/settings.json".source =
|
||||||
json.generate "settings.json" cfg.settings;
|
json.generate "settings.json" cfg.settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.niri.settings.switch-events = {
|
|
||||||
lid-close.action.spawn = ["dms" "ipc" "lock" "lock"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, host, ... }:
|
||||||
|
|
||||||
let cfg = config.sydnix.users.msyds.dank-material-shell;
|
let
|
||||||
|
cfg = config.sydnix.users.msyds.dank-material-shell;
|
||||||
|
on = hosts:
|
||||||
|
if builtins.isString hosts
|
||||||
|
then hosts == host
|
||||||
|
else builtins.elem host hosts;
|
||||||
in {
|
in {
|
||||||
options.sydnix.users.msyds.dank-material-shell = {
|
options.sydnix.users.msyds.dank-material-shell = {
|
||||||
enable = lib.mkEnableOption "Dank Material Shell";
|
enable = lib.mkEnableOption "Dank Material Shell";
|
||||||
@@ -167,7 +172,7 @@ in {
|
|||||||
showControlCenterButton = true;
|
showControlCenterButton = true;
|
||||||
showCapsLockIndicator = true;
|
showCapsLockIndicator = true;
|
||||||
controlCenterShowNetworkIcon = true;
|
controlCenterShowNetworkIcon = true;
|
||||||
controlCenterShowBluetoothIcon = true;
|
controlCenterShowBluetoothIcon = on ["fruitbook"];
|
||||||
controlCenterShowAudioIcon = true;
|
controlCenterShowAudioIcon = true;
|
||||||
controlCenterShowVpnIcon = true;
|
controlCenterShowVpnIcon = true;
|
||||||
controlCenterShowBrightnessIcon = false;
|
controlCenterShowBrightnessIcon = false;
|
||||||
@@ -286,9 +291,9 @@ in {
|
|||||||
batterySuspendTimeout = 0;
|
batterySuspendTimeout = 0;
|
||||||
batterySuspendBehavior = 0;
|
batterySuspendBehavior = 0;
|
||||||
batteryProfileName = "";
|
batteryProfileName = "";
|
||||||
lockBeforeSuspend = false;
|
lockBeforeSuspend = true;
|
||||||
loginctlLockIntegration = true;
|
loginctlLockIntegration = true;
|
||||||
fadeToLockEnabled = false;
|
fadeToLockEnabled = true;
|
||||||
fadeToLockGracePeriod = 5;
|
fadeToLockGracePeriod = 5;
|
||||||
launchPrefix = "";
|
launchPrefix = "";
|
||||||
brightnessDevicePins = {};
|
brightnessDevicePins = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user