2023-10-03 16:54:07 +02:00
|
|
|
{ pkgs, lib, inputs', ... }:
|
2023-06-11 23:09:59 +02:00
|
|
|
{
|
2023-10-03 16:54:07 +02:00
|
|
|
home.file.".xmonad/build".executable = true;
|
|
|
|
home.file.".xmonad/build".text = ''
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
cd ~/dotfiles/home-manager/modules/xmonad
|
|
|
|
eval "$(direnv export bash)"
|
|
|
|
stack build
|
|
|
|
rm "$1"
|
|
|
|
cp "$(stack path --local-install-root)/bin/xmonad-exe" "$1"
|
|
|
|
'';
|
2023-06-12 14:29:48 +02:00
|
|
|
|
2023-10-03 16:54:07 +02:00
|
|
|
home.file.".xmonad/buildenv".source =
|
|
|
|
pkgs.buildEnv {
|
|
|
|
name = "xmonad-buildenv";
|
|
|
|
ignoreCollisions = true;
|
|
|
|
paths = inputs'.self.devShells.${pkgs.stdenv.system}.default.nativeBuildInputs;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
2023-10-03 16:54:07 +02:00
|
|
|
|
|
|
|
home.file.".xmonad/runenv".source =
|
|
|
|
let
|
|
|
|
polybar-mm =
|
|
|
|
pkgs.writeShellScriptBin "polybar-mm"
|
|
|
|
(builtins.readFile ./scripts/polybar-mm.sh);
|
|
|
|
reload =
|
|
|
|
pkgs.writeShellScriptBin "xmonad-reload"
|
|
|
|
(builtins.readFile ./scripts/polybar-mm.sh);
|
|
|
|
toggle-touchpad =
|
|
|
|
pkgs.writeShellScriptBin "toggle-touchpad"
|
|
|
|
(builtins.readFile ./scripts/toggle-touchpad.sh);
|
|
|
|
auxmenu =
|
|
|
|
pkgs.writeShellScriptBin "auxmenu"
|
|
|
|
(builtins.readFile ./scripts/auxmenu.sh);
|
2023-10-04 18:04:40 +02:00
|
|
|
emacs-vterm =
|
|
|
|
pkgs.writeShellScriptBin "emacs-vterm"
|
|
|
|
(builtins.readFile ./scripts/emacs-vterm.sh);
|
2023-10-03 16:54:07 +02:00
|
|
|
in
|
|
|
|
pkgs.buildEnv {
|
|
|
|
name = "xmonad-runenv";
|
|
|
|
paths = with pkgs; [
|
|
|
|
brightnessctl
|
|
|
|
playerctl
|
|
|
|
dmenu
|
|
|
|
polybar-mm
|
2023-11-03 20:13:34 +01:00
|
|
|
polybarFull
|
2023-10-03 16:54:07 +02:00
|
|
|
reload
|
|
|
|
toggle-touchpad
|
|
|
|
auxmenu
|
2023-10-04 18:04:40 +02:00
|
|
|
emacs-vterm
|
2023-10-03 16:54:07 +02:00
|
|
|
libnotify
|
|
|
|
x11_ssh_askpass
|
|
|
|
];
|
|
|
|
};
|
2023-06-11 23:09:59 +02:00
|
|
|
}
|