Several changes to Xmonad/Xmobar:

- Change from xmobar to polybar
- Rename workspaces
- Add some new scratchpads
- Change xmonad.org to xmonad.hs
This commit is contained in:
2022-08-19 03:49:21 +02:00
parent 2b58db1345
commit 0fc1d15c35
6 changed files with 433 additions and 158 deletions
+15
View File
@@ -40,6 +40,17 @@ t tools preinstalled.";
creative = mkEnableOption "Whether or not the machine should have creative software
(music, video and image editing) installed.";
wlanInterface = mkOption {
type = types.nullOr types.string;
default = null;
};
# Check " ls -1 /sys/class/power_supply/ "
battery = mkOption {
type = types.nullOr types.string;
default = null;
};
laptop = mkEnableOption "Whether the machine is a laptop";
fixDisplayCommand = mkOption {
@@ -88,6 +99,10 @@ t tools preinstalled.";
assertion = cfg.headless -> (cfg.screens == { } && cfg.fixDisplayCommand == null);
message = "A headless machine can't have any screens.";
}
{
assertion = cfg.battery != null -> cfg.laptop;
message = "A battery shouldn't exist on a non laptop machine";
}
];
warnings = lib.optionals (0 < (lib.length (builtins.attrNames cfg.screens)) && (cfg.fixDisplayCommand != null)) [