nixos-config/modules/workspace/compton.nix

15 lines
446 B
Nix

{ pkgs, lib, config, ... }: {
home-manager.users.balsoft = {
programs.autorandr.hooks.preswitch.compton = "systemctl --user stop compton";
programs.autorandr.hooks.postswitch.compton = "systemctl --user start compton";
services.compton = {
enable = true;
backend = "glx";
noDNDShadow = false;
shadow = true;
shadowExclude = [ "!(I3_FLOATING_WINDOW@:c = 1)" ];
vSync = "opengl-swc";
};
};
}