Battery indicator in default conky
This commit is contained in:
@@ -8,9 +8,9 @@ conky.config = {
|
|||||||
own_window_class = 'Conky',
|
own_window_class = 'Conky',
|
||||||
own_window_title = 'Mabox Sysinfo Bar Conky',
|
own_window_title = 'Mabox Sysinfo Bar Conky',
|
||||||
|
|
||||||
alignment = 'top_right',
|
alignment = 'middle_right',
|
||||||
gap_x = 30,
|
gap_x = 30,
|
||||||
gap_y = 60,
|
gap_y = 0,
|
||||||
minimum_width = '200',
|
minimum_width = '200',
|
||||||
|
|
||||||
use_xft = true,
|
use_xft = true,
|
||||||
@@ -24,11 +24,11 @@ conky.config = {
|
|||||||
draw_outline = false,
|
draw_outline = false,
|
||||||
default_outline_color = '#222222',
|
default_outline_color = '#222222',
|
||||||
|
|
||||||
default_color = '#f8f8ff',
|
default_color = '#d3d4bf',
|
||||||
color0 = '#accdc7',
|
color0 = '#accdc7',
|
||||||
color1 = '#309552',
|
color1 = '#309552',
|
||||||
color2 = '#e8cb2d',
|
color2 = '#E8CB2D',
|
||||||
color3 = '#61c4bc',
|
color3 = '#2bb0a5',
|
||||||
cpu_avg_samples = 2,
|
cpu_avg_samples = 2,
|
||||||
|
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ conky.config = {
|
|||||||
double_buffer = true,
|
double_buffer = true,
|
||||||
update_interval = 2,
|
update_interval = 2,
|
||||||
|
|
||||||
template0 = [[~/.icons/mabox-logo-square-default.svg]],
|
template0 = [[~/.icons/mabox-logo-square.svg]],
|
||||||
};
|
};
|
||||||
|
|
||||||
conky.text = [[
|
conky.text = [[
|
||||||
@@ -74,8 +74,15 @@ ${image ${template0} -p 0,258 -s 64x64}
|
|||||||
${alignr} disk ${color0}${fs_used /} - ${fs_size /}
|
${alignr} disk ${color0}${fs_used /} - ${fs_size /}
|
||||||
${alignr}${color1} memory ${color0}$legacymem - $memmax
|
${alignr}${color1} memory ${color0}$legacymem - $memmax
|
||||||
#${alignr}${color0}${font Cantarell:size=9}swap $swapmax - $swap
|
#${alignr}${color0}${font Cantarell:size=9}swap $swapmax - $swap
|
||||||
#
|
${if_existing /sys/class/power_supply/BAT0/model_name}
|
||||||
${voffset 10}${alignr}${color0} Mabox ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
|
${alignr}${color1}baterry: ${color0}${battery_percent BAT0}%
|
||||||
|
${alignr}${color2}${battery_bar 4,80 BAT0}
|
||||||
|
${alignr}${color0}${battery_time BAT0}${endif}\
|
||||||
|
${if_existing /sys/class/power_supply/BAT1/model_name}
|
||||||
|
${alignr}${color1}baterry: ${color0}${battery_percent BAT1}%
|
||||||
|
${alignr}${color2}${battery_bar 4,80 BAT1}
|
||||||
|
${alignr}${color0}${battery_time BAT1}${endif}\
|
||||||
|
${alignr}${color0} Mabox ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
|
||||||
${alignr}${color1}${execi 10000 whoami}@${nodename}
|
${alignr}${color1}${execi 10000 whoami}@${nodename}
|
||||||
${alignr}${color0}uptime ${color1}${uptime_short}
|
${alignr}${color0}uptime ${color1}${uptime_short}
|
||||||
${alignr}${color0}${alignr}kernel ${color1}${kernel}
|
${alignr}${color0}${alignr}kernel ${color1}${kernel}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@text,,10,6,150,20,0,left,top,auto,#000000,<span size="large"></span>
|
@text,,10,6,150,20,0,left,top,auto,#000000,<span size="large"></span>
|
||||||
@search,,44,6,150,20,2,left,top,auto,#000000 0,<i>Type to search</i>
|
@search,,44,6,150,20,2,left,top,auto,#000000 0,Type to search
|
||||||
^sep()
|
^sep()
|
||||||
. ~/.config/mabox/favorites.csv
|
. ~/.config/mabox/favorites.csv
|
||||||
|
|
||||||
|
|||||||
|
Can't render this file because it contains an unexpected character in line 1 and column 55.
|
@@ -46,7 +46,7 @@ conky.config = {
|
|||||||
double_buffer = true,
|
double_buffer = true,
|
||||||
update_interval = 2,
|
update_interval = 2,
|
||||||
|
|
||||||
template0 = [[~/.icons/mabox-logo-square-default.svg]],
|
template0 = [[~/.icons/mabox-logo-square.svg]],
|
||||||
};
|
};
|
||||||
|
|
||||||
conky.text = [[
|
conky.text = [[
|
||||||
@@ -74,8 +74,15 @@ ${image ${template0} -p 0,258 -s 64x64}
|
|||||||
${alignr} disk ${color0}${fs_used /} - ${fs_size /}
|
${alignr} disk ${color0}${fs_used /} - ${fs_size /}
|
||||||
${alignr}${color1} memory ${color0}$legacymem - $memmax
|
${alignr}${color1} memory ${color0}$legacymem - $memmax
|
||||||
#${alignr}${color0}${font Cantarell:size=9}swap $swapmax - $swap
|
#${alignr}${color0}${font Cantarell:size=9}swap $swapmax - $swap
|
||||||
#
|
${if_existing /sys/class/power_supply/BAT0/model_name}
|
||||||
${voffset 10}${alignr}${color0} Mabox ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
|
${alignr}${color1}baterry: ${color0}${battery_percent BAT0}%
|
||||||
|
${alignr}${color2}${battery_bar 4,80 BAT0}
|
||||||
|
${alignr}${color0}${battery_time BAT0}${endif}\
|
||||||
|
${if_existing /sys/class/power_supply/BAT1/model_name}
|
||||||
|
${alignr}${color1}baterry: ${color0}${battery_percent BAT1}%
|
||||||
|
${alignr}${color2}${battery_bar 4,80 BAT1}
|
||||||
|
${alignr}${color0}${battery_time BAT1}${endif}\
|
||||||
|
${alignr}${color0} Mabox ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
|
||||||
${alignr}${color1}${execi 10000 whoami}@${nodename}
|
${alignr}${color1}${execi 10000 whoami}@${nodename}
|
||||||
${alignr}${color0}uptime ${color1}${uptime_short}
|
${alignr}${color0}uptime ${color1}${uptime_short}
|
||||||
${alignr}${color0}${alignr}kernel ${color1}${kernel}
|
${alignr}${color0}${alignr}kernel ${color1}${kernel}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ conky.config = {
|
|||||||
double_buffer = true,
|
double_buffer = true,
|
||||||
update_interval = 2,
|
update_interval = 2,
|
||||||
|
|
||||||
template0 = [[~/.icons/mabox-logo-square-default.svg]],
|
template0 = [[~/.icons/mabox-logo-square.svg]],
|
||||||
};
|
};
|
||||||
|
|
||||||
conky.text = [[
|
conky.text = [[
|
||||||
@@ -73,9 +73,16 @@ ${goto 18}${color0}${top_mem name 5}${alignr}${color1}${top_mem mem_res 5}
|
|||||||
${image ${template0} -p 0,258 -s 64x64}
|
${image ${template0} -p 0,258 -s 64x64}
|
||||||
${alignr} dysk ${color0}${fs_used /} - ${fs_size /}
|
${alignr} dysk ${color0}${fs_used /} - ${fs_size /}
|
||||||
${alignr}${color1} pamięć ${color0}$legacymem - $memmax
|
${alignr}${color1} pamięć ${color0}$legacymem - $memmax
|
||||||
#${alignr}${color0}${font Cantarell:size=9}swap $swapmax - $swap
|
#${alignr}${color0}swap $swapmax - $swap
|
||||||
#
|
${if_existing /sys/class/power_supply/BAT0/model_name}
|
||||||
${voffset 10}${alignr}${color0} Mabox ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
|
${alignr}${color1}baterry: ${color0}${battery_percent BAT0}%
|
||||||
|
${alignr}${color2}${battery_bar 4,80 BAT0}
|
||||||
|
${alignr}${color0}${battery_time BAT0}${endif}\
|
||||||
|
${if_existing /sys/class/power_supply/BAT1/model_name}
|
||||||
|
${alignr}${color1}baterry: ${color0}${battery_percent BAT1}%
|
||||||
|
${alignr}${color2}${battery_bar 4,80 BAT1}
|
||||||
|
${alignr}${color0}${battery_time BAT1}${endif}\
|
||||||
|
${alignr}${color0} Mabox ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
|
||||||
${alignr}${color1}${execi 10000 whoami}@${nodename}
|
${alignr}${color1}${execi 10000 whoami}@${nodename}
|
||||||
${alignr}${color0}uptime ${color1}${uptime_short}
|
${alignr}${color0}uptime ${color1}${uptime_short}
|
||||||
${alignr}${color0}${alignr}jądro ${color1}${kernel}
|
${alignr}${color0}${alignr}jądro ${color1}${kernel}
|
||||||
|
|||||||
Reference in New Issue
Block a user