start work on xmobar config

This commit is contained in:
Schrottkatze 2023-12-06 13:14:02 +01:00
parent 3d277d9cce
commit f7aec87025
5 changed files with 65 additions and 71 deletions

View file

@ -29,6 +29,7 @@
};
"bar/status" = {
# Style
bottom = true;
width = "100%";
height = "24px";
radius = 0;

View file

@ -1,11 +1,28 @@
{
config,
lib,
pkgs,
...
}:
with lib; {
home-manager.users.jade = {pkgs, ...}: {
}: {
home-manager.users.jade = {
config,
pkgs,
...
}: let
xmobarGhc = pkgs.haskellPackages.ghcWithPackages (pkgs: with pkgs; [xmobar]);
in {
home.packages = [xmobarGhc pkgs.xmonadctl];
programs.xmobar = {
enable = true;
};
home.file."xmobar.hs" = {
source = ../../haskell/xmobar/xmobar.hs;
target = ".config/xmobar/xmobar.hs";
onChange = ''
export PATH=${lib.makeBinPath [xmobarGhc]}:$PATH
${pkgs.xmobar}/bin/xmobar --recompile
${pkgs.haskellPackages.xmonad}/bin/xmonad --restart
'';
};
xsession.windowManager.xmonad = {
enable = true;
enableContribAndExtras = true;