mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
vanadium/xmonad: show current window count in pp
This commit is contained in:
parent
d3489e5730
commit
60bfd4f5c9
3 changed files with 15 additions and 35 deletions
|
|
@ -1,23 +0,0 @@
|
|||
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
|
||||
|
||||
module XMonad.Layout.ResizableTile.FixDescription
|
||||
( RTFixDescription(..)
|
||||
) where
|
||||
|
||||
import XMonad
|
||||
import qualified XMonad.StackSet as W
|
||||
import XMonad.Layout.ResizableTile
|
||||
|
||||
newtype RTFixDescription a = RTFixDescription { unwrapRT :: ResizableTall a }
|
||||
deriving (Read, Show)
|
||||
|
||||
instance LayoutClass RTFixDescription a where
|
||||
runLayout (W.Workspace t l s) =
|
||||
let ws' = W.Workspace t (unwrapRT l) s
|
||||
in (fmap . fmap . fmap) RTFixDescription . runLayout ws'
|
||||
|
||||
handleMessage (RTFixDescription l) =
|
||||
(fmap . fmap) RTFixDescription . handleMessage l
|
||||
|
||||
description (RTFixDescription l) =
|
||||
description l <> " " <> show (_nmaster l)
|
||||
Loading…
Add table
Add a link
Reference in a new issue