nix-config/modules/home-manager/desktop-xmonad/autorandr/common.nix

13 lines
304 B
Nix
Raw Normal View History

2022-01-25 12:27:52 +01:00
{ config, pkgs, ... }:
{
programs.autorandr = {
enable = true;
hooks.postswitch = {
"change-background" =
"/run/current-system/sw/bin/systemctl --user restart random-background.service";
"restart-xmonad" = "${pkgs.xmonad-with-packages}/bin/xmonad --restart";
};
};
}