nix-configs/modules/desktop/xmonad.nix

44 lines
989 B
Nix
Raw Permalink Normal View History

{
lib,
pkgs,
...
2023-12-06 13:14:02 +01:00
}: {
home-manager.users.jade = {
config,
pkgs,
...
}: let
2024-02-27 18:18:55 +01:00
xmobarGhc = pkgs.haskellPackages.ghcWithPackages (pkgs:
with pkgs; [
xmobar
statgrab
]);
2023-12-06 13:14:02 +01:00
in {
home.packages = [xmobarGhc pkgs.xmonadctl];
programs.xmobar = {
enable = true;
};
2023-12-06 20:07:14 +01:00
home.file."xmobar.hs" = rec {
2023-12-06 13:14:02 +01:00
source = ../../haskell/xmobar/xmobar.hs;
target = ".config/xmobar/xmobar.hs";
onChange = ''
2023-12-06 20:07:14 +01:00
${xmobarGhc}/bin/ghc -threaded ${target}
${pkgs.busybox}/bin/pkill xmobar
2023-12-06 13:14:02 +01:00
${pkgs.haskellPackages.xmonad}/bin/xmonad --restart
'';
};
2023-04-22 12:52:11 +02:00
xsession.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;
config = ../../haskell/xmonad/xmonad.hs;
};
home.file.wallpaper = {
target = "Pictures/wallpaper.jpg";
source = ../../other/wallpaper.jpg;
onChange = ''
feh --bg-fill ~/Pictures/wallpaper.jpg;
'';
};
2023-04-22 12:52:11 +02:00
};
}