~sumner/home-manager-config

5cf5d2828e4a886d8c42bce5e0acb348b7201593 — Sumner Evans 6 months ago 4773c59
use fonts submodule from nix-community/home-manager#1950
3 files changed, 37 insertions(+), 31 deletions(-)

M modules/email/quotes
M modules/neovim/plugins/ale.nix
M modules/window-manager/common.nix
M modules/email/quotes => modules/email/quotes +1 -1
@@ 1128,7 1128,7 @@ doing, even when it's not necessarily even for the [common] good.
We should be super-spreaders of the Gospel.
    -- Dave Anderson (6 December 2020, Mark 16)
%
Geophys is outdoor CS funded by the petroleum industry
Geophys is outdoor CS funded by the petroleum industry.
    -- jjaro (hekn dank memes)
%
When it comes to sex, our youth are being discipled by someone. It's up

M modules/neovim/plugins/ale.nix => modules/neovim/plugins/ale.nix +1 -1
@@ 7,7 7,7 @@ let
    nix = [ [ "nixpkgs-fmt" pkgs.nixpkgs-fmt ] ];
    python = [ [ "black" pkgs.black ] ];
  };
  aleLinters = { c = [ ]; cpp = [ ]; };
  aleLinters = { c = [ ]; cpp = [ ]; python = [ ]; };
  mapListForLang = lang: l: "'${lang}': [${concatMapStringsSep ", " (f: "'${elemAt f 0}'") l}]";
in
{

M modules/window-manager/common.nix => modules/window-manager/common.nix +35 -29
@@ 33,23 33,27 @@
    };
  };

  i3SwayConfig = let
    resizeStr = "  ";
    gapSize = 6;
    workspaces = [ "1: " "2" "3" "4" "5" "6" "7" "8" "9" "10" ];
    extraWorkspaces = [
      { name = "11: "; keycode = 20; }
      { name = "12: "; keycode = 21; }
    ];

    left = "h";
    down = "j";
    up = "k";
    right = "l";
    fonts = [ "Iosevka" "FontAwesome 10" ];

    menucalc = pkgs.callPackage ../../pkgs/menucalc.nix {};
  in
  i3SwayConfig =
    let
      resizeStr = "  ";
      gapSize = 6;
      workspaces = [ "1: " "2" "3" "4" "5" "6" "7" "8" "9" "10" ];
      extraWorkspaces = [
        { name = "11: "; keycode = 20; }
        { name = "12: "; keycode = 21; }
      ];

      left = "h";
      down = "j";
      up = "k";
      right = "l";
      fonts = {
        names = [ "Iosevka" "FontAwesome" ];
        size = 10.0;
      };

      menucalc = pkgs.callPackage ../../pkgs/menucalc.nix { };
    in
    {
      enable = true;
      config = rec {


@@ 96,12 100,13 @@
          { title = "Firefox - Sharing Indicator"; }
        ];

        keybindings = listToAttrs (
          # Switch to workspace
          (imap1 (i: name: { name = "${modifier}+${toString (mod i 10)}"; value = ''workspace "${name}"''; }) workspaces)
          # Move to workspace
          ++ (imap1 (i: name: { name = "${modifier}+Shift+${toString (mod i 10)}"; value = ''move container to workspace "${name}"''; }) workspaces)
        ) // {
        keybindings = listToAttrs
          (
            # Switch to workspace
            (imap1 (i: name: { name = "${modifier}+${toString (mod i 10)}"; value = ''workspace "${name}"''; }) workspaces)
              # Move to workspace
              ++ (imap1 (i: name: { name = "${modifier}+Shift+${toString (mod i 10)}"; value = ''move container to workspace "${name}"''; }) workspaces)
          ) // {
          "${modifier}+Return" = "exec ${terminal}";
          "${modifier}+Shift+q" = "kill";



@@ 168,12 173,13 @@
          XF86MonBrightnessUp = mkIf config.laptop.enable "exec brightnessctl s +5%";
        };

        keycodebindings = listToAttrs (
          # Switch to workspace
          (imap1 (i: { name, keycode }: { name = "${modifier}+${toString keycode}"; value = ''workspace "${name}"''; }) extraWorkspaces)
          # Move to workspace
          ++ (imap1 (i: { name, keycode }: { name = "${modifier}+Shift+${toString keycode}"; value = ''move container to workspace "${name}"''; }) extraWorkspaces)
        ) // {
        keycodebindings = listToAttrs
          (
            # Switch to workspace
            (imap1 (i: { name, keycode }: { name = "${modifier}+${toString keycode}"; value = ''workspace "${name}"''; }) extraWorkspaces)
              # Move to workspace
              ++ (imap1 (i: { name, keycode }: { name = "${modifier}+Shift+${toString keycode}"; value = ''move container to workspace "${name}"''; }) extraWorkspaces)
          ) // {
          "${modifier}+34" = "exec ${config.home.homeDirectory}/bin/mutt_helper"; # Launch mutt
          "${modifier}+35" = "exec ${pkgs.element-desktop}/bin/element-desktop"; # Launch Element
        };