add dynamic workspace names

This commit is contained in:
Maximilian Keßler 2022-07-18 21:48:02 +02:00
parent 3ad232c5aa
commit ddeafa09c2
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,14 @@
module XMonad.Custom.Prompt (module XMonad.Prompt, myXPConfig) where
import XMonad.Prompt
myXPConfig :: XPConfig
myXPConfig = def
{ font = "xft:Hack:pixelsize=14"
, bgColor = "#200000"
, fgColor = "#CFCFCF"
, height = 40
, position = CenteredAt 0.5 0.5
, promptBorderWidth = 2
, showCompletionOnTab = True
}

View file

@ -0,0 +1,11 @@
module XMonad.Custom.WorkspaceNames (module XMonad.Actions.WorkspaceNames, myWorkspaceNamesKeyBindings) where
import XMonad
import XMonad.Actions.WorkspaceNames
import XMonad.Custom.Prompt
myWorkspaceNamesKeyBindings :: [(String, X ())]
myWorkspaceNamesKeyBindings = [
("M-w", renameWorkspace myXPConfig)
]

View file

@ -16,9 +16,11 @@ library
XMonad.Custom.ProgramWorkspaces XMonad.Custom.ProgramWorkspaces
XMonad.Custom.UniversitySetup XMonad.Custom.UniversitySetup
XMonad.Custom.Layout XMonad.Custom.Layout
XMonad.Custom.Prompt
XMonad.Custom.Workspaces XMonad.Custom.Workspaces
XMonad.Custom.Modifiers XMonad.Custom.Modifiers
XMonad.Custom.NumberWorkspaces XMonad.Custom.NumberWorkspaces
XMonad.Custom.WorkspaceNames
hs-source-dirs: src hs-source-dirs: src
ghc-options: -funbox-strict-fields -Wall -Wno-unused-do-bind ghc-options: -funbox-strict-fields -Wall -Wno-unused-do-bind
build-depends: base build-depends: base