You are not logged in.
Reference: http://mowgli-writes.deviantart.com/art … es&qo=0%29
I downloaded a conky clock from above and converted it to lua successfully. It runs seemingly fine. However it's spitting out a heap of errors from the TEXT part of the config:
[rose@visas-marr ~]$ conky -d
conky: desktop window (292) is root window
conky: window type - normal
conky: drawing to created window (0x1600002)
conky: drawing to double buffer
conky: forked to background, pid is 32534
[rose@visas-marr ~]$
conky: Bad arguments: ' ' and ' 35'
conky: compare failed for expression ' < 35'
conky: Bad arguments: ' ' and ' 15'
conky: compare failed for expression ' >= 15'
conky: Bad arguments: ' ' and ' 20'
conky: compare failed for expression ' < 20'
conky: Bad arguments: ' ' and ' 15'
conky: compare failed for expression ' >= 15'
conky: Bad arguments: ' ' and ' 20'
conky: compare failed for expression ' < 20'
conky: Bad arguments: ' ' and ' 20'
conky: compare failed for expression ' >= 20'
conky: Bad arguments: ' ' and ' 30'
conky: compare failed for expression ' < 30'
conky: Bad arguments: ' ' and ' 25'
conky: compare failed for expression ' >= 25'
conky: Bad arguments: ' ' and ' 30'
conky: compare failed for expression ' < 30'
conky: Bad arguments: ' ' and ' 5'
conky: compare failed for expression ' >= 5'
conky: Bad arguments: ' ' and ' 10'
conky: compare failed for expression ' < 10'
conky: Bad arguments: ' ' and ' 30'
conky: compare failed for expression ' >= 30'
conky: Bad arguments: ' ' and ' 35'
conky: compare failed for expression ' < 35'
conky: Bad arguments: ' ' and ' 10'
conky: compare failed for expression ' >= 10'
conky: Bad arguments: ' ' and ' 15'
conky: compare failed for expression ' < 15'
conky: Bad arguments: ' ' and ' 35'
conky: compare failed for expression ' < 35'
conky: Bad arguments: ' ' and ' 5'
conky: compare failed for expression ' >= 5'
conky: Bad arguments: ' ' and ' 35'
conky: compare failed for expression ' < 35'
conky: Bad arguments: ' ' and ' 9'
conky: compare failed for expression ' == 9'
conky: Bad arguments: ' ' and ' 1'
conky: compare failed for expression ' == 1'
conky: Bad arguments: ' ' and ' 6'
conky: compare failed for expression ' == 6'
conky: Bad arguments: ' ' and ' 3'
conky: compare failed for expression ' == 3'
conky: Bad arguments: ' ' and ' 4'
conky: compare failed for expression ' == 4'
conky: Bad arguments: ' ' and ' 5'
conky: compare failed for expression ' == 5'
conky: Bad arguments: ' ' and ' 2'
conky: compare failed for expression ' == 2'
conky: Bad arguments: ' ' and ' 8'
conky: compare failed for expression ' == 8'
conky: Bad arguments: ' ' and ' 11'
conky: compare failed for expression ' == 11'
conky: Bad arguments: ' ' and ' 7'
conky: compare failed for expression ' == 7'
conky: Bad arguments: ' ' and ' 12'
conky: compare failed for expression ' == 12'
conky: Bad arguments: ' ' and ' 10'
conky: compare failed for expression ' == 10'
conky: Bad arguments: ' ' and ' 5'
conky: compare failed for expression ' < 5'I'm new to Conky so I don't even know where to begin to fix the rest of this config. I'm on Conky 1.10.1-2 Thanks in advance!
Full config (updated to lua):
conky.config = {
alignment = 'middle_middle',
background = false,
color1 = '#2d2d2d',
--#4A2B45
--#382536
--#3F2E2F
--#000000
default_color = '#ffffff',
default_shade_color = '#000000',
draw_shades = true,
double_buffer = true,
font = 'Source Sans Pro:size=18',
gap_x = 0,
--575
gap_y = 0,
--310
own_window = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_type = 'normal',
own_window_class = 'Conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
update_interval = 15.0,
uppercase = true,
use_xft = true,
xftalpha = 0.1,
}
conky.text = [[
${alignc}${color}I T ${color1}L ${color}I S ${color1}A S T I M E
${alignc}${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color}${endif}${endif}A ${color1}C ${if_match ${exec date +"%M"} >= 15}${if_match ${exec date +"%M"} < 20}${color}${endif}${endif}Q U A R T E R ${color1}D C
${alignc}${if_match ${exec date +"%M"} >= 20}${if_match ${exec date +"%M"} < 30}${color}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} >= 25}${if_match ${exec date +"%M"} < 30}${color}${endif}${else}${color1}${endif}${if_match ${exec date +"%M"} >= 5}${if_match ${exec date +"%M"} < 10}${color}${endif}${endif}F I V E ${color1}X
${alignc}${if_match ${exec date +"%M"} >= 30}${if_match ${exec date +"%M"} < 35}${color}${endif}${endif}H A L F ${color1}B ${if_match ${exec date +"%M"} >= 10}${if_match ${exec date +"%M"} < 15}${color}${endif}${endif}T E N ${color1}F T O
${alignc}${else}${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color}${endif}${endif}A ${color1}C ${if_match ${exec date +"%M"} >= 45}${if_match ${exec date +"%M"} < 50}${color}${endif}${endif}Q U A R T E R ${color1}D C
${alignc}${if_match ${exec date +"%M"} >= 35}${if_match ${exec date +"%M"} < 45}${color}${endif}${endif}T W E N T Y ${if_match ${exec date +"%M"} < 40}${if_match ${exec date +"%M"} >= 35}${color}${endif}${else}${color1}${endif}${if_match ${exec date +"%M"} >= 55}${color}${endif}F I V E ${color1}X
${alignc}H A L F B ${if_match ${exec date +"%M"} >= 50}${if_match ${exec date +"%M"} < 55}${color}${endif}${endif}T E N ${color1}F ${color}T O${color1}
${alignc}${endif}${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%M"} >= 5}${color}${endif}${endif}P A S T ${color1}E R U ${if_match ${exec date +"%M"} < 35}${if_match ${exec date +"%I"} == 9}${color}${else}${color1}${endif}N I N E
${alignc}${if_match ${exec date +"%I"} == 1}${color}${else}${color1}${endif}O N E ${if_match ${exec date +"%I"} == 6}${color}${else}${color1}${endif}S I X ${if_match ${exec date +"%I"} == 3}${color}${else}${color1}${endif}T H R E E
${alignc}${if_match ${exec date +"%I"} == 4}${color}${else}${color1}${endif}F O U R ${if_match ${exec date +"%I"} == 5}${color}${else}${color1}${endif}F I V E ${if_match ${exec date +"%I"} == 2}${color}${else}${color1}${endif}T W O
${alignc}${if_match ${exec date +"%I"} == 8}${color}${else}${color1}${endif}E I G H T ${if_match ${exec date +"%I"} == 11}${color}${else}${color1}${endif}E L E V E N
${alignc}${if_match ${exec date +"%I"} == 7}${color}${else}${color1}${endif}S E V E N ${if_match ${exec date +"%I"} == 12}${color}${else}${color1}${endif}T W E L V E
${alignc}${if_match ${exec date +"%I"} == 10}${color}${else}${color1}${endif}T E N ${else}${if_match ${exec date +"%I"} == 8}${color}${else}${color1}${endif}N I N E
${alignc}${if_match ${exec date +"%I"} == 12}${color}${else}${color1}${endif}O N E ${if_match ${exec date +"%I"} == 5}${color}${else}${color1}${endif}S I X ${if_match ${exec date +"%I"} == 2}${color}${else}${color1}${endif}T H R E E
${alignc}${if_match ${exec date +"%I"} == 3}${color}${else}${color1}${endif}F O U R ${if_match ${exec date +"%I"} == 4}${color}${else}${color1}${endif}F I V E ${if_match ${exec date +"%I"} == 1}${color}${else}${color1}${endif}T W O
${alignc}${if_match ${exec date +"%I"} == 7}${color}${else}${color1}${endif}E I G H T${if_match ${exec date +"%I"} == 10}${color}${else}${color1}${endif} E L E V E N
${alignc}${if_match ${exec date +"%I"} == 6}${color}${else}${color1}${endif}S E V E N${if_match ${exec date +"%I"} == 11}${color}${else}${color1}${endif} T W E L V E
${alignc}${if_match ${exec date +"%I"} == 9}${color}${else}${color1}${endif}T E N ${endif}${color1}S E ${if_match ${exec date +"%M"} < 5}${color}${endif}O C L O C K
]];Last edited by Thorned_Rose (2016-02-03 07:46:47)
Offline
I found the same configuration and your post trying to search for an answer. It's just a couple of quotation issues. The following config works for me:
conky.config = {
alignment = 'middle_middle',
background = false,
color1 = '#2d2d2d',
--#4A2B45
--#382536
--#3F2E2F
--#000000
default_color = '#ffffff',
default_shade_color = '#000000',
draw_shades = true,
double_buffer = true,
font = 'Source Sans Pro:size=18',
gap_x = 0,
--575
gap_y = 0,
--310
own_window = true,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_type = 'normal',
own_window_class = 'Conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
update_interval = 15.0,
uppercase = true,
use_xft = true,
xftalpha = 0.1,
}
conky.text = [[
${alignc}${color}I T ${color1}L ${color}I S ${color1}A S T I M E
${alignc}${if_match "${exec date +'%M'}" < "35"}${if_match "${exec date +'%M'}" >= "15"}${if_match "${exec date +'%M'}" < "20"}${color}${endif}${endif}A ${color1}C ${if_match "${exec date +'%M'}" >= "15"}${if_match "${exec date +'%M'}" < "20"}${color}${endif}${endif}Q U A R T E R ${color1}D C
${alignc}${if_match "${exec date +'%M'}" >= "20"}${if_match "${exec date +'%M'}" < "30"}${color}${endif}${endif}T W E N T Y ${if_match "${exec date +'%M'}" >= "25"}${if_match "${exec date +'%M'}" < "30"}${color}${endif}${else}${color1}${endif}${if_match "${exec date +'%M'}" >= "5"}${if_match "${exec date +'%M'}" < "10"}${color}${endif}${endif}F I V E ${color1}X
${alignc}${if_match "${exec date +'%M'}" >= "30"}${if_match "${exec date +'%M'}" < "35"}${color}${endif}${endif}H A L F ${color1}B ${if_match "${exec date +'%M'}" >= "10"}${if_match "${exec date +'%M'}" < "15"}${color}${endif}${endif}T E N ${color1}F T O
${alignc}${else}${if_match "${exec date +'%M'}" >= "45"}${if_match "${exec date +'%M'}" < "50"}${color}${endif}${endif}A ${color1}C ${if_match "${exec date +'%M'}" >= "45"}${if_match "${exec date +'%M'}" < "50"}${color}${endif}${endif}Q U A R T E R ${color1}D C
${alignc}${if_match "${exec date +'%M'}" >= "35"}${if_match "${exec date +'%M'}" < "45"}${color}${endif}${endif}T W E N T Y ${if_match "${exec date +'%M'}" < "40"}${if_match "${exec date +'%M'}" >= "35"}${color}${endif}${else}${color1}${endif}${if_match "${exec date +'%M'}" >= "55"}${color}${endif}F I V E ${color1}X
${alignc}H A L F B ${if_match "${exec date +'%M'}" >= "50"}${if_match "${exec date +'%M'}" < "55"}${color}${endif}${endif}T E N ${color1}F ${color}T O${color1}
${alignc}${endif}${if_match "${exec date +'%M'}" < "35"}${if_match "${exec date +'%M'}" >= "5"}${color}${endif}${endif}P A S T ${color1}E R U ${if_match "${exec date +'%M'}" < "35"}${if_match "${exec date +'%I'}" == "9"}${color}${else}${color1}${endif}N I N E
${alignc}${if_match "${exec date +'%I'}" == "1"}${color}${else}${color1}${endif}O N E ${if_match "${exec date +'%I'}" == "6"}${color}${else}${color1}${endif}S I X ${if_match "${exec date +'%I'}" == "3"}${color}${else}${color1}${endif}T H R E E
${alignc}${if_match "${exec date +'%I'}" == "4"}${color}${else}${color1}${endif}F O U R ${if_match "${exec date +'%I'}" == "5"}${color}${else}${color1}${endif}F I V E ${if_match "${exec date +'%I'}" == "2"}${color}${else}${color1}${endif}T W O
${alignc}${if_match "${exec date +'%I'}" == "8"}${color}${else}${color1}${endif}E I G H T ${if_match "${exec date +'%I'}" == "11"}${color}${else}${color1}${endif}E L E V E N
${alignc}${if_match "${exec date +'%I'}" == "7"}${color}${else}${color1}${endif}S E V E N ${if_match "${exec date +'%I'}" == "12"}${color}${else}${color1}${endif}T W E L V E
${alignc}${if_match "${exec date +'%I'}" == "10"}${color}${else}${color1}${endif}T E N ${else}${if_match "${exec date +'%I'}" == "8"}${color}${else}${color1}${endif}N I N E
${alignc}${if_match "${exec date +'%I'}" == "12"}${color}${else}${color1}${endif}O N E ${if_match "${exec date +'%I'}" == "5"}${color}${else}${color1}${endif}S I X ${if_match "${exec date +'%I'}" == "2"}${color}${else}${color1}${endif}T H R E E
${alignc}${if_match "${exec date +'%I'}" == "3"}${color}${else}${color1}${endif}F O U R ${if_match "${exec date +'%I'}" == "4"}${color}${else}${color1}${endif}F I V E ${if_match "${exec date +'%I'}" == "1"}${color}${else}${color1}${endif}T W O
${alignc}${if_match "${exec date +'%I'}" == "8"}${color}${else}${color1}${endif}E I G H T ${if_match "${exec date +'%I'}" == "11"}${color}${else}${color1}${endif}E L E V E N
${alignc}${if_match "${exec date +'%I'}" == "7"}${color}${else}${color1}${endif}S E V E N ${if_match "${exec date +'%I'}" == "12"}${color}${else}${color1}${endif}T W E L V E
${alignc}${if_match "${exec date +'%I'}" == "10"}${color}${else}${color1}${endif}T E N ${else}${if_match "${exec date +'%I'}" == "8"}${color}${else}${color1}${endif}N I N E
${alignc}${if_match "${exec date +'%I'}" == "12"}${color}${else}${color1}${endif}O N E ${if_match "${exec date +'%I'}" == "5"}${color}${else}${color1}${endif}S I X ${if_match "${exec date +'%I'}" == "2"}${color}${else}${color1}${endif}T H R E E
${alignc}${if_match "${exec date +'%I'}" == "3"}${color}${else}${color1}${endif}F O U R ${if_match "${exec date +'%I'}" == "4"}${color}${else}${color1}${endif}F I V E ${if_match "${exec date +'%I'}" == "1"}${color}${else}${color1}${endif}T W O
${alignc}${if_match "${exec date +'%I'}" == "7"}${color}${else}${color1}${endif}E I G H T${if_match "${exec date +'%I'}" == "10"}${color}${else}${color1}${endif} E L E V E N
${alignc}${if_match "${exec date +'%I'}" == "6"}${color}${else}${color1}${endif}S E V E N${if_match "${exec date +'%I'}" == "11"}${color}${else}${color1}${endif} T W E L V E
${alignc}${if_match "${exec date +'%I'}" == "9"}${color}${else}${color1}${endif}T E N ${endif}${color1}S E ${if_match "${exec date +'%M'}" < "5"}${color}${endif}O C L O C K
]];Offline