Update conky configurations
This commit is contained in:
parent
8f0f734001
commit
fcba777d99
3 changed files with 78 additions and 53 deletions
29
conky.conf
29
conky.conf
|
@ -1,17 +1,19 @@
|
||||||
-- vim: set filetype=lua :miv --
|
-- vim: set filetype=lua :miv --
|
||||||
conky.config = {
|
conky.config = {
|
||||||
|
monitor = 1,
|
||||||
double_buffer = true,
|
double_buffer = true,
|
||||||
update_interval = 1,
|
update_interval = 1,
|
||||||
alignment = 'bottom_right',
|
alignment = 'bottom_right',
|
||||||
gap_x = 100 + 320,
|
gap_x = 00-1920 --[[100 + 320]],
|
||||||
gap_y = 100 + 200,
|
gap_y = 00 --[[100 + 200]],
|
||||||
own_window = true,
|
own_window = true,
|
||||||
own_window_title = 'conky',
|
own_window_title = 'conky',
|
||||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
||||||
own_window_argb_visual = true,
|
own_window_argb_visual = true,
|
||||||
own_window_transparent = true,
|
own_window_transparent = true,
|
||||||
|
own_window_argb_value = 255,
|
||||||
border_inner_margin = 8,
|
border_inner_margin = 8,
|
||||||
background = true,
|
-- background = true,
|
||||||
border_width = 1,
|
border_width = 1,
|
||||||
cpu_avg_samples = 2,
|
cpu_avg_samples = 2,
|
||||||
draw_borders = false,
|
draw_borders = false,
|
||||||
|
@ -32,17 +34,28 @@ conky.config = {
|
||||||
use_spacer = 'none',
|
use_spacer = 'none',
|
||||||
show_graph_scale = false,
|
show_graph_scale = false,
|
||||||
show_graph_range = false,
|
show_graph_range = false,
|
||||||
default_color = '#666666',
|
|
||||||
color1 = "#664444",
|
|
||||||
color2 = "#888888",
|
|
||||||
color3 = "#663333"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if os.getenv("DARK") then
|
||||||
|
print("starting in dark mode")
|
||||||
|
conky.config.default_color = '#ffffff'
|
||||||
|
conky.config.color1 = "#ffffff"
|
||||||
|
conky.config.color2 = "#aaaaaa"
|
||||||
|
conky.config.color3 = "#df74b1"
|
||||||
|
else
|
||||||
|
print("starting in light mode")
|
||||||
|
conky.config.default_color = '#525564'
|
||||||
|
conky.config.color1 = "#494c5b"
|
||||||
|
conky.config.color2 = "#333333"
|
||||||
|
conky.config.color3 = "#fb006b"
|
||||||
|
end
|
||||||
|
|
||||||
conky.text = [[$color3${time %Y-%m-%d}
|
conky.text = [[$color3${time %Y-%m-%d}
|
||||||
$color1${voffset -10}${font Quicksand:size=40}${time %H:%M}$font$color
|
$color1${voffset -10}${font Quicksand:size=40}${time %H:%M}$font$color
|
||||||
${color2}Uptime:$color $alignr$uptime
|
${color2}Uptime:$color $alignr$uptime
|
||||||
#
|
#
|
||||||
${color3}Stats $hr$color
|
${color3}Stats $hr$color
|
||||||
${color2}ip:$color $alignr${texeci 3 wget http://darkwiiplayer.com/api/ip --no-check-certificate -qO - }
|
${color2}ip:$color $alignr${texeci 3 wget http://darkwiiplayer.com/api/ip --no-check-certificate -qO - 2>/dev/null }
|
||||||
${color2}vpn:$color $alignr${execi 2 expressvpn status | grep -Po 'Not connected|(?<=Connected to).*$'}
|
${color2}vpn:$color $alignr${execi 2 expressvpn status | grep -Po 'Not connected|(?<=Connected to).*$'}
|
||||||
#
|
#
|
||||||
#${color3}Location $hr$color
|
#${color3}Location $hr$color
|
||||||
|
|
|
@ -13,16 +13,17 @@ conky.config = {
|
||||||
imlib_cache_size = 0,
|
imlib_cache_size = 0,
|
||||||
own_window = true,
|
own_window = true,
|
||||||
own_window_title = 'conky',
|
own_window_title = 'conky',
|
||||||
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
|
||||||
|
own_window_transparent = true,
|
||||||
own_window_argb_visual = true,
|
own_window_argb_visual = true,
|
||||||
own_window_argb_value = 0,
|
own_window_argb_value = 255,
|
||||||
own_window_type = 'normal',
|
own_window_type = 'conky',
|
||||||
border_inner_margin = 20,
|
border_inner_margin = 20,
|
||||||
border_outer_margin = 0,
|
border_outer_margin = 0,
|
||||||
xinerama_head = 2,
|
xinerama_head = 2,
|
||||||
alignment = 'top_left',
|
alignment = 'top_left',
|
||||||
gap_x = 40,
|
gap_x = 40,
|
||||||
gap_y = 280,
|
gap_y = 20,
|
||||||
draw_shades = false,
|
draw_shades = false,
|
||||||
draw_outline = false,
|
draw_outline = false,
|
||||||
draw_borders = false,
|
draw_borders = false,
|
||||||
|
@ -31,16 +32,26 @@ conky.config = {
|
||||||
font = 'Hack:size=12',
|
font = 'Hack:size=12',
|
||||||
xftalpha = 1,
|
xftalpha = 1,
|
||||||
uppercase = false,
|
uppercase = false,
|
||||||
default_color = '#FFFFFF',
|
|
||||||
own_window_colour = '#000000',
|
own_window_colour = '#000000',
|
||||||
--own_window_colour = '#2F2F2F',
|
--own_window_colour = '#2F2F2F',
|
||||||
minimum_width = 640,
|
minimum_width = 640,
|
||||||
minimum_height = 0,
|
minimum_height = 0,
|
||||||
color1 = 'white', -- Title
|
|
||||||
color2 = '#FFFFFF', -- Text
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if os.getenv("DARK") then
|
||||||
|
conky.config.default_color = '#FFFFFF'
|
||||||
|
conky.config.color1 = 'white'
|
||||||
|
conky.config.color2 = '#FFFFFF'
|
||||||
|
conky.config.color3 = '#8844aa'
|
||||||
|
else
|
||||||
|
conky.config.default_color = '#525564'
|
||||||
|
conky.config.color1 = "#494c5b"
|
||||||
|
conky.config.color2 = "#333333"
|
||||||
|
conky.config.color3 = "#fb006b"
|
||||||
|
end
|
||||||
|
|
||||||
conky.text = table.concat({[[
|
conky.text = table.concat({[[
|
||||||
${offset 10}${font Quicksand:size=40}${time %H:%M}$font
|
${offset 10}${font Quicksand:size=40}${time %H:%M}$font
|
||||||
${hr}
|
$color3${hr}
|
||||||
${alignr}${font Quicksand:size=20}$color2${time %A} ${time %d.%m.%Y}$color
|
${alignr}${font Quicksand:size=20}$color2${time %A} ${time %d.%m.%Y}$color
|
||||||
]]}, "\n")
|
]]}, "\n")
|
||||||
|
|
|
@ -33,7 +33,6 @@ conky.config = {
|
||||||
font = 'Quicksand:size=14',
|
font = 'Quicksand:size=14',
|
||||||
xftalpha = 1,
|
xftalpha = 1,
|
||||||
uppercase = false,
|
uppercase = false,
|
||||||
default_color = '#FFFFFF',
|
|
||||||
own_window_colour = '#000000',
|
own_window_colour = '#000000',
|
||||||
--own_window_colour = '#2F2F2F',
|
--own_window_colour = '#2F2F2F',
|
||||||
alignment = 'bottom_left',
|
alignment = 'bottom_left',
|
||||||
|
@ -41,14 +40,16 @@ conky.config = {
|
||||||
minimum_height = 0,
|
minimum_height = 0,
|
||||||
-- gap_x = 1680 - 200 - 40,
|
-- gap_x = 1680 - 200 - 40,
|
||||||
-- gap_x = 40,
|
-- gap_x = 40,
|
||||||
gap_x = 20,
|
gap_x = 1920 + 20,
|
||||||
gap_y = 250,
|
gap_y = 20,
|
||||||
color1 = 'white', -- Title
|
|
||||||
color2 = 'gray', -- Text
|
|
||||||
--color3 = '#aa2244', -- Lines
|
|
||||||
--color3 = '#41a3FF', -- Lines
|
|
||||||
color3 = '#ffffFF', -- Lines
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if os.getenv("DARK") then
|
||||||
|
conky.config.default_color = '#FFFFFF'
|
||||||
|
else
|
||||||
|
conky.config.default_color = '#525564'
|
||||||
|
end
|
||||||
|
|
||||||
conky.text = table.concat({[=====[
|
conky.text = table.concat({[=====[
|
||||||
${execi 1 playerctl metadata xesam:artist | sed 's/-/—/'}
|
${execi 1 playerctl metadata xesam:artist | sed 's/-/—/'}
|
||||||
${font Quicksand:size=20}${execi 1 playerctl metadata xesam:title | sed 's/-/—/'}${font}
|
${font Quicksand:size=20}${execi 1 playerctl metadata xesam:title | sed 's/-/—/'}${font}
|
||||||
|
|
Loading…
Reference in a new issue