From b02c7ec5a3876ceb4963bb937fdd43f7fb843368 Mon Sep 17 00:00:00 2001 From: Joinemm Date: Wed, 21 Feb 2024 13:22:22 +0200 Subject: [PATCH] Xmonad layout improvements and disable fprintd --- home-modules/xmonad/xmonad.hs | 15 ++++----------- hosts/x1/configuration.nix | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/home-modules/xmonad/xmonad.hs b/home-modules/xmonad/xmonad.hs index 7b956a3..aa41dad 100644 --- a/home-modules/xmonad/xmonad.hs +++ b/home-modules/xmonad/xmonad.hs @@ -43,6 +43,7 @@ import XMonad.Layout.Gaps ) import XMonad.Layout.Grid import XMonad.Layout.NoBorders +import XMonad.Layout.ResizableThreeColumns import XMonad.Layout.Spacing (Border (Border), spacingRaw, toggleScreenSpacingEnabled) import XMonad.Layout.Spiral import XMonad.Layout.ToggleLayouts @@ -203,16 +204,7 @@ myManageHook = isFullscreen --> doFullFloat ] -myLayout = avoidStruts (tiled ||| GridRatio (21 / 9) ||| spiral (21 / 9) ||| Mirror tiled) - where - -- default tiling algorithm partitions the screen into two panes - tiled = Tall nmaster delta ratio - -- The default number of windows in the master pane - nmaster = 1 - -- Default proportion of screen occupied by master pane - ratio = 1 / 2 - -- Percent of screen to increment by when resizing panes - delta = 3 / 100 +myLayout = avoidStruts (ResizableThreeCol 1 (3 / 100) (1 / 2) [] ||| Grid) outerGap = 0 @@ -249,5 +241,6 @@ myConfig = focusedBorderColor = myFocusedBorderColor, keys = myKeys, layoutHook = myLayoutHook, - manageHook = myManageHook + manageHook = myManageHook, + handleEventHook = fullscreenEventHook } diff --git a/hosts/x1/configuration.nix b/hosts/x1/configuration.nix index 37ee63e..e498bae 100644 --- a/hosts/x1/configuration.nix +++ b/hosts/x1/configuration.nix @@ -59,7 +59,7 @@ in { # fingerprint scanner daemon # to enroll a finger, use sudo fprintd-enroll $USER - fprintd.enable = true; + fprintd.enable = false; }; environment.systemPackages = lib.flatten [