xmobar - add brightness and cpu, also better date

This commit is contained in:
Felix Van der Jeugt 2015-03-07 18:20:14 +01:00
parent 6af2388036
commit f0f0e5d0fd
39 changed files with 804 additions and 2 deletions

BIN
xmobar/icons/brightness.xcf Normal file

Binary file not shown.

View File

@ -0,0 +1,21 @@
/* XPM */
static char * 0_xpm[] = {
"16 16 2 1",
" c None",
". c #FFFFFF",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" .. .. ",
" .. . ",
" . .. ",
" . . ",
" .. .. ",
" .. .. ",
" . .. .. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 1_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" .. .. ",
" .. . ",
" . .. ",
" . . ",
" .. .. ",
" .. .. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 2_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" .. .. ",
" .. . ",
" . .. ",
" . . ",
" .. .. ",
" ..++++++.. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 3_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" .. .. ",
" .. . ",
" . .. ",
" . . ",
" ..++++++++.. ",
" ..++++++.. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 4_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" .. .. ",
" .. . ",
" . .. ",
" .++++++++. ",
" ..++++++++.. ",
" ..++++++.. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 5_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" .. .. ",
" .. . ",
" .++++++++.. ",
" .++++++++. ",
" ..++++++++.. ",
" ..++++++.. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 6_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" .. .. ",
" ..++++++++. ",
" .++++++++.. ",
" .++++++++. ",
" ..++++++++.. ",
" ..++++++.. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 7_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . .. .. . ",
" ..++++++.. ",
" ..++++++++. ",
" .++++++++.. ",
" .++++++++. ",
" ..++++++++.. ",
" ..++++++.. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

View File

@ -0,0 +1,22 @@
/* XPM */
static char * 8_xpm[] = {
"16 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E6E6E6",
" ",
" ",
" . . . . ",
" ...... ",
" . ..++++.. . ",
" ..++++++.. ",
" ..++++++++. ",
" .++++++++.. ",
" .++++++++. ",
" ..++++++++.. ",
" ..++++++.. ",
" . ..++++.. . ",
" ...... ",
" . . . . ",
" ",
" "};

BIN
xmobar/icons/cpu.xcf Normal file

Binary file not shown.

21
xmobar/icons/cpu/0.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * 0_xpm[] = {
"2 16 2 1",
" c None",
". c #FFFFFF",
" ",
" ",
" ",
"..",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/1.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 1_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E7DCDC",
" ",
" ",
" ",
"..",
" ",
" ",
" ",
" ",
" ",
" ",
" ",
"++",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/2.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 2_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E9C2C2",
" ",
" ",
" ",
"..",
" ",
" ",
" ",
" ",
" ",
" ",
"++",
"++",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/3.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 3_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #ECA9AA",
" ",
" ",
" ",
"..",
" ",
" ",
" ",
" ",
" ",
"++",
"++",
"++",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/4.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 4_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #EF9090",
" ",
" ",
" ",
"..",
" ",
" ",
" ",
" ",
"++",
"++",
"++",
"++",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/5.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 5_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F27777",
" ",
" ",
" ",
"..",
" ",
" ",
" ",
"++",
"++",
"++",
"++",
"++",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/6.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 6_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F45D5D",
" ",
" ",
" ",
"..",
" ",
" ",
"++",
"++",
"++",
"++",
"++",
"++",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/7.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 7_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F84444",
" ",
" ",
" ",
"..",
" ",
"++",
"++",
"++",
"++",
"++",
"++",
"++",
"..",
" ",
" ",
" "};

22
xmobar/icons/cpu/8.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 8_xpm[] = {
"2 16 3 1",
" c None",
". c #FFFFFF",
"+ c #FA2A2B",
" ",
" ",
" ",
"..",
"++",
"++",
"++",
"++",
"++",
"++",
"++",
"++",
"..",
" ",
" ",
" "};

21
xmobar/icons/cpu1/0.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * 0_xpm[] = {
"3 16 2 1",
" c None",
". c #FFFFFF",
" ",
" ",
" ",
" ..",
". ",
". ",
". ",
". ",
". ",
". ",
". ",
". ",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/1.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 1_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E7DCDC",
" ",
" ",
" ",
" ..",
". ",
". ",
". ",
". ",
". ",
". ",
". ",
".++",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/2.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 2_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E9C2C2",
" ",
" ",
" ",
" ..",
". ",
". ",
". ",
". ",
". ",
". ",
".++",
".++",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/3.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 3_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #ECA9AA",
" ",
" ",
" ",
" ..",
". ",
". ",
". ",
". ",
". ",
".++",
".++",
".++",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/4.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 4_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #EF9090",
" ",
" ",
" ",
" ..",
". ",
". ",
". ",
". ",
".++",
".++",
".++",
".++",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/5.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 5_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F27777",
" ",
" ",
" ",
" ..",
". ",
". ",
". ",
".++",
".++",
".++",
".++",
".++",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/6.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 6_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F45D5D",
" ",
" ",
" ",
" ..",
". ",
". ",
".++",
".++",
".++",
".++",
".++",
".++",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/7.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 7_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F84444",
" ",
" ",
" ",
" ..",
". ",
".++",
".++",
".++",
".++",
".++",
".++",
".++",
" ..",
" ",
" ",
" "};

22
xmobar/icons/cpu1/8.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 8_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #FA2A2B",
" ",
" ",
" ",
" ..",
".++",
".++",
".++",
".++",
".++",
".++",
".++",
".++",
" ..",
" ",
" ",
" "};

21
xmobar/icons/cpu4/0.xpm Normal file
View File

@ -0,0 +1,21 @@
/* XPM */
static char * 0_xpm[] = {
"3 16 2 1",
" c None",
". c #FFFFFF",
" ",
" ",
" ",
".. ",
" .",
" .",
" .",
" .",
" .",
" .",
" .",
" .",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/1.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 1_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E7DCDC",
" ",
" ",
" ",
".. ",
" .",
" .",
" .",
" .",
" .",
" .",
" .",
"++.",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/2.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 2_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #E9C2C2",
" ",
" ",
" ",
".. ",
" .",
" .",
" .",
" .",
" .",
" .",
"++.",
"++.",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/3.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 3_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #ECA9AA",
" ",
" ",
" ",
".. ",
" .",
" .",
" .",
" .",
" .",
"++.",
"++.",
"++.",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/4.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 4_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #EF9090",
" ",
" ",
" ",
".. ",
" .",
" .",
" .",
" .",
"++.",
"++.",
"++.",
"++.",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/5.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 5_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F27777",
" ",
" ",
" ",
".. ",
" .",
" .",
" .",
"++.",
"++.",
"++.",
"++.",
"++.",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/6.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 6_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F45D5D",
" ",
" ",
" ",
".. ",
" .",
" .",
"++.",
"++.",
"++.",
"++.",
"++.",
"++.",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/7.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 7_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #F84444",
" ",
" ",
" ",
".. ",
" .",
"++.",
"++.",
"++.",
"++.",
"++.",
"++.",
"++.",
".. ",
" ",
" ",
" "};

22
xmobar/icons/cpu4/8.xpm Normal file
View File

@ -0,0 +1,22 @@
/* XPM */
static char * 8_xpm[] = {
"3 16 3 1",
" c None",
". c #FFFFFF",
"+ c #FA2A2B",
" ",
" ",
" ",
".. ",
"++.",
"++.",
"++.",
"++.",
"++.",
"++.",
"++.",
"++.",
".. ",
" ",
" ",
" "};

View File

@ -1,7 +1,7 @@
Config { font = "xft:Source Code Pro:size=9" Config { font = "xft:Source Code Pro:size=9"
, iconRoot = ".config/xmobar/icons" , iconRoot = ".config/xmobar/icons"
, commands = [ Run Date "%a %b %0d %l:%M" "date" 10 , commands = [ Run Date "%B, %a %0d, %l:%M" "date" 10
, Run Battery , Run Battery
[ "-t", "<leftipat>" [ "-t", "<leftipat>"
, "--" , "--"
@ -18,7 +18,21 @@ Config { font = "xft:Source Code Pro:size=9"
, "--" , "--"
, "--quality-icon-pattern", "<icon=wireless/%%.xpm/>" , "--quality-icon-pattern", "<icon=wireless/%%.xpm/>"
] 50 ] 50
, Run Brightness
[ "--template", "<ipat>"
, "--"
, "-D", "intel_backlight"
, "--brightness-icon-pattern", "<icon=brightness/%%.xpm/>"
] 50
, Run MultiCpu
[ "--template", "<ipat0><ipat1><ipat2><ipat3>"
, "--"
, "--load-icon-patterns", "<icon=cpu1/%%.xpm/>"
, "--load-icon-patterns", "<icon=cpu/%%.xpm/>"
, "--load-icon-patterns", "<icon=cpu/%%.xpm/>"
, "--load-icon-patterns", "<icon=cpu4/%%.xpm/>"
] 50
, Run StdinReader , Run StdinReader
] ]
, template = "%StdinReader% }{ %wlp7s0wi% %enp9s0% %battery% | <fc=#ee9a00>%date%</fc> " , template = " %StdinReader% } %date% { %multicpu% %wlp7s0wi%%enp9s0%%bright%%battery% "
} }