Skip to content

Commit

Permalink
Xmonad layout improvements and disable fprintd
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Feb 21, 2024
1 parent 3ef118e commit b02c7ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions home-modules/xmonad/xmonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -249,5 +241,6 @@ myConfig =
focusedBorderColor = myFocusedBorderColor,
keys = myKeys,
layoutHook = myLayoutHook,
manageHook = myManageHook
manageHook = myManageHook,
handleEventHook = fullscreenEventHook
}
2 changes: 1 addition & 1 deletion hosts/x1/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit b02c7ec

Please sign in to comment.