blob: 37fc04b292e1d3d605897452a8f7cd79339a4fea (
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, ... }:
{
imports = [
./bspwm
./polybar
./sxhkd
];
options.graphical = {
enable = lib.mkEnableOption "Enables graphical interface.";
};
config = lib.mkIf config.graphical.enable {
xdg.enable = true;
xsession.enable = true;
xsession.windowManager.command = lib.mkForce "
#!/bin/sh
${if config.tools.feh.enable then
"${pkgs.feh}/bin/feh --bg-scale ${../../assets/skeleton-mage.png}"
else "xsetroot -solid \"${config.scheme.withHashtag.base00}\""}
${pkgs.bspwm}/bin/bspwm
";
};
}
|