From f1a54018e3cba19085c8ce4f5c584345c93fe19d Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 21 Apr 2020 16:46:43 +0300 Subject: [PATCH] feat: another xmonad layout and stuf --- modules/applications/xmonad/xmonad.hs | 9 +++++++-- modules/dev/javascript.nix | 14 +++++++++----- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/modules/applications/xmonad/xmonad.hs b/modules/applications/xmonad/xmonad.hs index 529a259..d57cc99 100644 --- a/modules/applications/xmonad/xmonad.hs +++ b/modules/applications/xmonad/xmonad.hs @@ -3,11 +3,13 @@ import Control.Monad ( join ) import XMonad import XMonad.Config.Kde -import XMonad.Layout.Spacing import XMonad.Util.EZConfig import XMonad.Actions.SpawnOn import XMonad.Hooks.ManageDocks +import XMonad.Layout.Spacing +import XMonad.Layout.ThreeColumns + main = xmonad $ docks @@ -44,7 +46,10 @@ main = border = uniformBorder 4 spacingHook = spacingRaw True border True border True - layouts = Tall 1 (3 / 100) (1 / 2) ||| Full + tall = Tall 1 (3 / 100) (1 / 2) + threeCols = ThreeCol 1 (3 / 100) (1 / 2) + + layouts = tall ||| threeCols ||| Full myLayoutHook = desktopLayoutModifiers $ spacingHook layouts diff --git a/modules/dev/javascript.nix b/modules/dev/javascript.nix index e9b4347..a61245a 100644 --- a/modules/dev/javascript.nix +++ b/modules/dev/javascript.nix @@ -1,9 +1,13 @@ { pkgs, ... }: let fromNpm = import ./npm { inherit pkgs; }; in { - home-manager.users.adrielus.home.packages = with pkgs; [ - nodejs - nodePackages.node2nix - fromNpm.pnpm - ]; + home-manager.users.adrielus.home.packages = with pkgs; + with nodePackages; + with fromNpm; [ + nodejs + node2nix + + pnpm + yarn + ]; }