makke xmobar fancy
This commit is contained in:
parent
2e1bd2e9c6
commit
aa8caa69ca
8 changed files with 109 additions and 38 deletions
|
@ -1,12 +1,16 @@
|
|||
Config { overrideRedirect = False
|
||||
, font = "xft:Roboto Mono for Powerline:size=11"
|
||||
, bgColor = "#0C0C0F"
|
||||
, fgColor = "#ccdee5"
|
||||
, font = "xft:FiraCode Nerd Font:size=11",
|
||||
additionalFonts = [ "xft:FiraCode Nerd Font:bold:pixelsize=19:antialias=true:hinting=true"
|
||||
, "xft:FiraCode Nerd Font:bold:pixelsize=25:antialias=true:hinting=true"
|
||||
, "xft:FiraCode Nerd Font:bold:pixelsize=20:antialias=true:hinting=true" ]
|
||||
|
||||
, bgColor = "#0d141b"
|
||||
, fgColor = "#c4c1df"
|
||||
, position = TopW L 100
|
||||
, iconRoot = ".config/xmobar/xpm/"
|
||||
, commands = [Run Cpu
|
||||
[ "-L", "3"
|
||||
, "-H", "50"
|
||||
[ "--template", "<total>%"
|
||||
,"-w", "2"
|
||||
] 10
|
||||
, Run Alsa "default" "Master"
|
||||
[ "--template", "<volumestatus>"
|
||||
|
@ -14,12 +18,16 @@ Config { overrideRedirect = False
|
|||
, "--"
|
||||
, "--on", ""
|
||||
]
|
||||
, Run Memory ["--template", "Mem: <usedratio>%"] 10
|
||||
, Run Date "%a %Y-%m-%d <fc=#8EB7CF>%H:%M</fc>" "date" 10
|
||||
, Run Memory ["--template", "<used>"] 10
|
||||
, Run Date "%a %Y-%m-%d<fn=2><fc=#0d141b,#2C546F:0></fc></fn><fc=#6D89C1,#0d141b:0>%H:%M</fc>" "date" 10
|
||||
, Run XMonadLog
|
||||
, Run Com "get_music_info" [] "" 10
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " <icon=haskell_20.xpm/> %XMonadLog% }{ %get_music_info% | %alsa:default:Master% | %cpu% | %memory% | %date% "
|
||||
}
|
||||
, template = " <icon=haskell_20.xpm/> %XMonadLog% }{\
|
||||
\<fn=2><fc=#2C546F,#0d141b:0></fc></fn><fc=#c4c1df,#2C546F:0>%get_music_info%</fc>\
|
||||
\<fn=2><fc=#0d141b,#2C546F:0></fc></fn><fc=#c4c1df,#0d141b:0><fn=1><fc=#2C546F> </fc></fn>%alsa:default:Master%</fc>\
|
||||
\<fn=2><fc=#2C546F,#0d141b:0></fc></fn><fc=#c4c1df,#2C546F:0><fn=1><fc=#0d141b,#2C546F:0> </fc></fn>%cpu%</fc>\
|
||||
\<fn=2><fc=#0d141b,#2C546F:0></fc></fn><fc=#c4c1df,#0d141b:0><fn=1><fc=#2C546F> </fc></fn>%memory%</fc>\
|
||||
\<fn=2><fc=#2C546F,#0d141b:0></fc></fn><fc=#c4c1df,#2C546F:0>%date%</fc>"
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
Config { overrideRedirect = False
|
||||
, font = "xft:Roboto Mono for Powerline:size=11"
|
||||
, bgColor = "BGCOLOR"
|
||||
, fgColor = "FGCOLOR"
|
||||
, position = TopW L 100
|
||||
, iconRoot = ".config/xmobar/xpm/"
|
||||
, commands = [Run Cpu
|
||||
[ "-L", "3"
|
||||
, "-H", "50"
|
||||
] 10
|
||||
, Run Alsa "default" "Master"
|
||||
[ "--template", "<volumestatus>"
|
||||
, "--suffix" , "True"
|
||||
, "--"
|
||||
, "--on", ""
|
||||
]
|
||||
, Run Memory ["--template", "Mem: <usedratio>%"] 10
|
||||
, Run Date "%a %Y-%m-%d <fc=COLOR6>%H:%M</fc>" "date" 10
|
||||
, Run XMonadLog
|
||||
, Run Com "get_music_info" [] "" 10
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " <icon=haskell_20.xpm/> %XMonadLog% }{ %get_music_info% | %alsa:default:Master% | %cpu% | %memory% | %date% "
|
||||
}
|
33
.config/xmobar/xmobarrc-template.hs
Normal file
33
.config/xmobar/xmobarrc-template.hs
Normal file
|
@ -0,0 +1,33 @@
|
|||
Config { overrideRedirect = False
|
||||
, font = "xft:FiraCode Nerd Font:size=10",
|
||||
additionalFonts = [ "xft:FiraCode Nerd Font:bold:pixelsize=19:antialias=true:hinting=true"
|
||||
, "xft:FiraCode Nerd Font:bold:pixelsize=25:antialias=true:hinting=true"
|
||||
, "xft:FiraCode Nerd Font:bold:pixelsize=20:antialias=true:hinting=true" ]
|
||||
|
||||
, bgColor = "BGCOLOR"
|
||||
, fgColor = "FGCOLOR"
|
||||
, position = TopW L 100
|
||||
, iconRoot = ".config/xmobar/xpm/"
|
||||
, commands = [Run Cpu
|
||||
[ "--template", "<total>%"
|
||||
,"-w", "2"
|
||||
] 10
|
||||
, Run Alsa "default" "Master"
|
||||
[ "--template", "<volumestatus>"
|
||||
, "--suffix" , "True"
|
||||
, "--"
|
||||
, "--on", ""
|
||||
]
|
||||
, Run Memory ["--template", "<used>"] 10
|
||||
, Run Date "%a %Y-%m-%d<fn=2><fc=BGCOLOR,COLOR9:0></fc></fn><fc=COLOR6,BGCOLOR:0>%H:%M</fc>" "date" 10
|
||||
, Run XMonadLog
|
||||
, Run Com "get_music_info" [] "" 10
|
||||
]
|
||||
, sepChar = "%"
|
||||
, alignSep = "}{"
|
||||
, template = " <icon=haskell_20.xpm/> %XMonadLog% }{\
|
||||
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0>%get_music_info%</fc>\
|
||||
\<fn=2><fc=BGCOLOR,COLOR9:0></fc></fn><fc=FGCOLOR,BGCOLOR:0><fn=1><fc=COLOR9> </fc></fn>%alsa:default:Master%</fc>\
|
||||
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0><fn=1><fc=BGCOLOR,COLOR9:0> </fc></fn>%cpu%</fc>\
|
||||
\<fn=2><fc=BGCOLOR,COLOR9:0></fc></fn><fc=FGCOLOR,BGCOLOR:0><fn=1><fc=COLOR9> </fc></fn>%memory%</fc>\
|
||||
\<fn=2><fc=COLOR9,BGCOLOR:0></fc></fn><fc=FGCOLOR,COLOR9:0>%date%</fc>"
|
25
.config/xmobar/xpm/haskell_20.xpm
Normal file
25
.config/xmobar/xpm/haskell_20.xpm
Normal file
|
@ -0,0 +1,25 @@
|
|||
/* XPM */
|
||||
static char * haskell_20_xpm[] = {
|
||||
"20 20 2 1",
|
||||
" c None",
|
||||
". c #FFFFFF",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
".... .... ",
|
||||
" .... ... ",
|
||||
" ... .... ",
|
||||
" .... .... ",
|
||||
" .... ... ........",
|
||||
" ... .... .......",
|
||||
" .... .... ",
|
||||
" .... .... ",
|
||||
" ... ...... .....",
|
||||
" .... ....... ....",
|
||||
" .... .... ... ",
|
||||
" ... .... .... ",
|
||||
" .... ... .... ",
|
||||
".... .... ... ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
Loading…
Add table
Add a link
Reference in a new issue