Skip to content

Instantly share code, notes, and snippets.

@codeit13
Last active September 9, 2020 07:11
Show Gist options
  • Save codeit13/7284e03cd01d2c13e91f88052ed6cee7 to your computer and use it in GitHub Desktop.
Save codeit13/7284e03cd01d2c13e91f88052ed6cee7 to your computer and use it in GitHub Desktop.
Conky Script for Desktop Greetings Text
conky.config = {
background=true,
update_interval=100,
double_buffer=true,
no_buffers=true,
imlib_cache_size=10,
draw_shades=false,
draw_outline=false,
draw_borders=false,
alignment="top_middle",
gap_x=0,
gap_y=350,
minimum_height=360,
minimum_width=360,
own_window=true,
own_window_type="dock",
own_window_transparent=true,
own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager",
own_window_argb_visual=true,
own_window_argb_value=0,
use_xft=true,
xftalpha=1,
font="Tinos Bold Sans:size=10",
text_buffer_size=256,
override_utf8_locale=true,
default_color='FFFFFF',
color0='f4ffff',
color1='f4fff',
}
conky.text = [[
${alignc}${font GE Inspira:pixelsize=75:weight=Bold}${color0}\
${exec greet.sh}
${alignc 30}${alignc}${font GE Inspira:pixelsize=45}${color0}\
${voffset -70}
${alignc}${time %d %B, %Y}\
]]
#!/bin/bash
h=`date +%H`
gd_mrng="Good morning <Your Name Here>."
gd_aftrn="Good afternoon <Your Name Here>."
gd_eve="Good evening <Your Name Here>."
if [ $h -lt 12 ]; then
echo $gd_mrng
elif [ $h -lt 18 ]; then
echo $gd_aftrn
echo $foo
else
echo $gd_eve
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment