FontAwesome + correct date
This commit is contained in:
parent
8813466f77
commit
8cbaaeb840
2 changed files with 22 additions and 8 deletions
10
xmobarrc
10
xmobarrc
|
@ -1,10 +1,10 @@
|
||||||
Config {
|
Config {
|
||||||
font = "xft:Fira Code:style=Regular:size=9"
|
font = "xft:Fira Code:style=Regular:size=9"
|
||||||
, template = " %StdinReader%}{%battery% <fc=#2AA198>•</fc> %date% "
|
, template = " %UnsafeStdinReader%}{%battery% <fc=#2AA198>•</fc> %date% "
|
||||||
, commands =
|
, commands =
|
||||||
[ Run StdinReader
|
[ Run UnsafeStdinReader
|
||||||
, Run Date "%F %a <fc=#2AA198>•</fc> %T" "date" 10
|
, Run Date "%A %d %B %H:%M %Z" "date" 10
|
||||||
, Run Battery [ "--template", "<leftvbar> <left>%<fc=#2AA198>/</fc><timeleft> <fc=#2AA198>• <acstatus> • <watts>W</fc>"
|
, Run Battery [ "--template", "<fn=1></fn> <left>% (<timeleft>) <fc=#2AA198>• <acstatus> • <watts>W</fc>"
|
||||||
, "-L", "25"
|
, "-L", "25"
|
||||||
, "-H", "35"
|
, "-H", "35"
|
||||||
, "-l", "#FF0000"
|
, "-l", "#FF0000"
|
||||||
|
@ -22,7 +22,7 @@ Config {
|
||||||
, borderColor = "#859900"
|
, borderColor = "#859900"
|
||||||
, position = TopSize L 100 29
|
, position = TopSize L 100 29
|
||||||
, textOffset = 16
|
, textOffset = 16
|
||||||
, additionalFonts = [ "xft:DejaVu Sans Mono:style=Regular:size=9" ]
|
, additionalFonts = [ "xft:FontAwesome:style=Regular:size=10" ]
|
||||||
-- , sepChar
|
-- , sepChar
|
||||||
-- , alignSep
|
-- , alignSep
|
||||||
-- , iconOffset
|
-- , iconOffset
|
||||||
|
|
18
xmonad.hs
18
xmonad.hs
|
@ -2,7 +2,7 @@
|
||||||
-- including best practises.
|
-- including best practises.
|
||||||
-- https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Config/Example.hs
|
-- https://github.com/xmonad/xmonad-contrib/blob/master/XMonad/Config/Example.hs
|
||||||
|
|
||||||
{-# LANGUAGE FlexibleContexts #-}
|
{-# LANGUAGE FlexibleContexts, OverloadedStrings #-}
|
||||||
|
|
||||||
module Main (main) where
|
module Main (main) where
|
||||||
|
|
||||||
|
@ -33,7 +33,18 @@ import XMonad.Layout.LayoutModifier (ModifiedLayout)
|
||||||
|
|
||||||
wkspcs :: [String]
|
wkspcs :: [String]
|
||||||
-------- ["●", "◕", "◑", "◔", "◯", "◐", "◒", "◓", "☦", "λ"]
|
-------- ["●", "◕", "◑", "◔", "◯", "◐", "◒", "◓", "☦", "λ"]
|
||||||
wkspcs = ["α", "β", "γ", "δ", "ε", "ζ", "η", "θ", "ι", "κ"]
|
-------- ["α", "β", "γ", "δ", "ε", "ζ", "η", "θ", "ι", "κ"]
|
||||||
|
wkspcs = [ wrap "<fn=1>" "</fn>" "\xF0E0" -- email
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF086" -- chat
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF121" -- work
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF126" -- work
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF120" -- work
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF09C" -- password
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF16C" -- web work
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF025" -- sound
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF269" -- web perso
|
||||||
|
, wrap "<fn=1>" "</fn>" "\xF03D" -- movie
|
||||||
|
]
|
||||||
|
|
||||||
barPP = def
|
barPP = def
|
||||||
{ ppCurrent = xmobarColor' S.orange
|
{ ppCurrent = xmobarColor' S.orange
|
||||||
|
@ -41,6 +52,7 @@ barPP = def
|
||||||
, ppHidden = xmobarColor' S.foreground -- other workspaces with windows
|
, ppHidden = xmobarColor' S.foreground -- other workspaces with windows
|
||||||
, ppHiddenNoWindows = xmobarColor' S.foregroundll -- other workspaces
|
, ppHiddenNoWindows = xmobarColor' S.foregroundll -- other workspaces
|
||||||
, ppSep = " "
|
, ppSep = " "
|
||||||
|
, ppWsSep = " "
|
||||||
, ppLayout = printLayout
|
, ppLayout = printLayout
|
||||||
, ppTitle = printTitle
|
, ppTitle = printTitle
|
||||||
}
|
}
|
||||||
|
@ -88,6 +100,8 @@ myConfig = desktopConfig
|
||||||
, ("M-S-<Right>", shiftToNext >> nextWS)
|
, ("M-S-<Right>", shiftToNext >> nextWS)
|
||||||
, ("M-p", fuzzyPrompt myXPConfig)
|
, ("M-p", fuzzyPrompt myXPConfig)
|
||||||
, ("<Tab>-b", sendMessage (Toggle "Full"))
|
, ("<Tab>-b", sendMessage (Toggle "Full"))
|
||||||
|
, ("M-s", spawn "/run/current-system/sw/bin/scrot /tmp/screen.png")
|
||||||
|
, ("M-S-s", spawn "sleep 0.2 ; /run/current-system/sw/bin/scrot -s /tmp/screenSel.png")
|
||||||
]
|
]
|
||||||
|
|
||||||
`additionalKeys`-- Add some more (automatic) key bindings:
|
`additionalKeys`-- Add some more (automatic) key bindings:
|
||||||
|
|
Loading…
Reference in a new issue