Add window titles

This commit is contained in:
Martin Potier 2020-10-16 10:43:31 +03:00
parent 4fe78658cd
commit 3893cdb68e
No known key found for this signature in database
GPG key ID: D4DD957DBA4AD89E
3 changed files with 30 additions and 3 deletions

View file

@ -36,7 +36,7 @@ projects = [ adminProject "wrk-config"
, workProject "azure-kube-platform" , workProject "azure-kube-platform"
, workProject "bob-the-builder" , workProject "bob-the-builder"
, workProject "boomi-gateway" , workProject "boomi-gateway"
, workProject "connect2.0-terraform" , workProject "connect2-terraform"
, workProject "docker-images" , workProject "docker-images"
, workProject "gitlab-runners" , workProject "gitlab-runners"
, workProject "infra-inventory" , workProject "infra-inventory"

View file

@ -20,8 +20,33 @@ module Solarized
, foreground , foreground
, foregroundhl , foregroundhl
, foregroundll , foregroundll
, theme
) where ) where
import XMonad.Layout.Decoration (Theme(..))
theme :: Theme
theme =
Theme { activeColor = violet
, inactiveColor = base03
, urgentColor = red
, activeBorderColor = violet
, inactiveBorderColor = base03
, urgentBorderColor = red
, activeBorderWidth = 1
, inactiveBorderWidth = 1
, urgentBorderWidth = 1
, activeTextColor = base03
, inactiveTextColor = base02
, urgentTextColor = red
, fontName = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
, decoWidth = 200
, decoHeight = 15
, windowTitleAddons = []
, windowTitleIcons = []
}
base03 = "#002b36" base03 = "#002b36"
base02 = "#073642" base02 = "#073642"
base01 = "#586e75" base01 = "#586e75"

View file

@ -11,6 +11,7 @@ import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageHelpers import XMonad.Hooks.ManageHelpers
import XMonad.Layout.NoBorders (noBorders, smartBorders) import XMonad.Layout.NoBorders (noBorders, smartBorders)
import XMonad.Layout.NoFrillsDecoration
import XMonad.Layout.PerScreen import XMonad.Layout.PerScreen
import XMonad.Layout.Reflect import XMonad.Layout.Reflect
import XMonad.Layout.ResizableTile (ResizableTall(..)) import XMonad.Layout.ResizableTile (ResizableTall(..))
@ -28,8 +29,8 @@ import MouseBindings as Mouse (modify)
import Projects (modify) import Projects (modify)
import Scratchpad (modify) import Scratchpad (modify)
--------- toggle btw vvvvvvvvvv or vvvvv -------------------- toggle btw vvvvvvvvvv or vvvvv
layouts = toggleLayouts fullscreen tiled layouts = titleBar $ toggleLayouts fullscreen tiled
where where
fullscreen = (noBorders Full) fullscreen = (noBorders Full)
tiled = smarts $ ifWider (1920 + 1) wideScreen normalScreen tiled = smarts $ ifWider (1920 + 1) wideScreen normalScreen
@ -37,6 +38,7 @@ layouts = toggleLayouts fullscreen tiled
normalScreen = resizableTall normalScreen = resizableTall
resizableTall = ResizableTall 1 (5/100) (1/2) [] resizableTall = ResizableTall 1 (5/100) (1/2) []
smarts = (smartSpacingWithEdge 5) . smartBorders smarts = (smartSpacingWithEdge 5) . smartBorders
titleBar = noFrillsDeco shrinkText S.theme
-- Use the `xprop' tool to get the info you need for these matches. -- Use the `xprop' tool to get the info you need for these matches.
-- For className, use the second value that xprop gives you. -- For className, use the second value that xprop gives you.