start work on xmobar config
This commit is contained in:
parent
3d277d9cce
commit
f7aec87025
5 changed files with 65 additions and 71 deletions
|
@ -29,6 +29,7 @@
|
|||
};
|
||||
"bar/status" = {
|
||||
# Style
|
||||
bottom = true;
|
||||
width = "100%";
|
||||
height = "24px";
|
||||
radius = 0;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue