blob: 6e82e2cf3c04e857385802a65571b796b7510515 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ lib, config, pkgs, ... }:
{
options.desktop.display-server.x11.xinit = {
enable = lib.mkEnableOption "Enables xinit.";
};
config = lib.mkIf config.desktop.display-server.x11.xinit.enable {
home.file.".xinitrc" = {
executable = true;
source = pkgs.writeText ".xinitrc"
''
#!/bin/sh
${if config.tools.viewer.feh.enable then
"feh --bg-scale ${../../../../../assets/skeleton-mage.png}"
else "xsetroot -solid \"${config.scheme.withHashtag.base00}\""}
${if config.desktop.status-bar.polybar.enable then
config.desktop.status-bar.polybar.command
else ""}
${if config.desktop.window-manager.sxhkd.enable then "sxhkd &" else ""}
exec ${config.desktop.window-manager.command}
'';
};
};
}
|