add dynamic workspace names
This commit is contained in:
parent
3ad232c5aa
commit
ddeafa09c2
3 changed files with 27 additions and 0 deletions
14
src/XMonad/Custom/Prompt.hs
Normal file
14
src/XMonad/Custom/Prompt.hs
Normal 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
|
||||||
|
}
|
11
src/XMonad/Custom/WorkspaceNames.hs
Normal file
11
src/XMonad/Custom/WorkspaceNames.hs
Normal 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)
|
||||||
|
]
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue