fork/home-manager
git clone https://git.julia.blue/fork/home-manager
07dbd4c0
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5let cfg = config . programs . pywal ; 6 7in { 8options = { programs . pywal = { enable = mkEnableOption "pywal" ; }; }; 9 10config = mkIf cfg . enable { 11 12home . packages = [ pkgs . pywal ]; 13 14programs . zsh . initExtra = '' 15# Import colorscheme from 'wal' asynchronously 16# & # Run the process in the background. 17# ( ) # Hide shell job control messages. 18(cat ${ config . xdg . cacheHome } /wal/sequences &) 19'' ; 20 21programs . kitty . extraConfig = '' 22include ${ config . xdg . cacheHome } /wal/colors-kitty.conf 23'' ; 24 25programs . rofi . theme . "@import" = 26" ${ config . xdg . cacheHome } /wal/colors-rofi-dark.rasi" ; 27 28programs . neovim . plugins = [{ 29plugin = pkgs . vimPlugins . pywal-nvim ; 30type = "lua" ; 31}]; 32 33# wal generates and that's the one we should load from /home/teto/.cache/wal/colors.Xresources ~/.Xresources 34xsession . windowManager . i3 = { 35extraConfig = '' 36set_from_resource $bg i3wm.color0 #ff0000 37set_from_resource $bg-alt i3wm.color14 #ff0000 38set_from_resource $fg i3wm.color15 #ff0000 39set_from_resource $fg-alt i3wm.color2 #ff0000 40set_from_resource $hl i3wm.color13 #ff0000 41'' ; 42 43config . colors = { 44focused = { 45border = "$fg-alt" ; 46background = "$bg" ; 47text = "$hl" ; 48indicator = "$fg-alt" ; 49childBorder = "$hl" ; 50}; 51 52focusedInactive = { 53border = "$fg-alt" ; 54background = "$bg" ; 55text = "$fg" ; 56indicator = "$fg-alt" ; 57childBorder = "$fg-alt" ; 58}; 59 60unfocused = { 61border = "$fg-alt" ; 62background = "$bg" ; 63text = "$fg" ; 64indicator = "$fg-alt" ; 65childBorder = "$fg-alt" ; 66}; 67 68urgent = { 69border = "$fg-alt" ; 70background = "$bg" ; 71text = "$fg" ; 72indicator = "$fg-alt" ; 73childBorder = "$fg-alt" ; 74}; 75 76background = "$bg" ; 77}; 78}; 79}; 80} 81