{ 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 "; }; }