2023-05-21 21:15:04 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
|
|
|
|
let cfg = config.custom.gui.sway;
|
|
|
|
|
|
|
|
in with lib; {
|
|
|
|
|
|
|
|
options.custom.gui.sway = {
|
|
|
|
enable = mkEnableOption "sway window manager";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf (cfg.enable) {
|
|
|
|
|
|
|
|
home.packages = [];
|
|
|
|
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
# This is all required to get it to not die.
|
|
|
|
enable = true;
|
|
|
|
extraSessionCommands = "export WLR_NO_HARDWARE_CURSORS=1";
|
|
|
|
extraOptions = [ "--unsupported-gpu" ];
|
|
|
|
|
2023-05-22 00:45:36 +02:00
|
|
|
config = {
|
|
|
|
output."*".bg = "${../../data/wallpaper.jpg} fill";
|
|
|
|
terminal = "${pkgs.kitty}/bin/kitty";
|
|
|
|
};
|
2023-05-21 21:15:04 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|