- Index
- » Desktop
- » Conky notes
Pagina's 1
#1 06-Jan-2021 17:13:07
- warp
- Administrator
Conky notes
Show "notes.txt" on the desktop with Conky.
Create the Notes widget:
conky.config = {
-- -- Conky settings notes -- #
background = false,
update_interval = 15,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 2048,
imlib_cache_size = 0,
-- -- Window specifications -- #
own_window = true,
own_window_type = 'desktop',
own_window_transparent = true,
own_window_hints = 'undecorate,sticky,skip_taskbar,skip_pager,below',
border_inner_margin = 0,
border_outer_margin = 0,
minimum_width = 350, minimum_height = 150,
--alignment tl
gap_x = 70,
gap_y = 705,
-- -- Graphics settings -- #
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
-- -- Text settings -- #
use_xft = true,
font = 'Santana:style=Bold:size=10',
xftalpha = 0.8,
uppercase = false,
-- -- default_color = '#FFFFFF', -- #
default_color = '#ffffff',
alignment = 'bottom_right',
own_window_argb_value = 0,
own_window_argb_visual = true,
own_window_colour = '000000',
};
conky.text = [[
${font Santana:style=Bold:size=12}${alignc}KATTEBELLETJES${alignr}${font Santana:size=12}(${lines /home/USERNAME/notes.txt})${font}
${stippled_hr}
${voffset 10}${execp ~/.bin/viewnotes.sh}
# ${stippled_hr 1}
]];
and run it with viewnotes.sh:
#!/bin/bash
cat ~/notes.txt | sed 's/^/ \${color #F2F106}x \$color /g'
Offline
Pagina's 1
- Index
- » Desktop
- » Conky notes