├── icons ├── 0.png ├── 1.png ├── 10.png ├── 11.png ├── 12.png ├── 13.png ├── 14.png ├── 15.png ├── 16.png ├── 17.png ├── 18.png ├── 19.png ├── 2.png ├── 20.png ├── 21.png ├── 22.png ├── 23.png ├── 24.png ├── 25.png ├── 26.png ├── 27.png ├── 28.png ├── 29.png ├── 3.png ├── 30.png ├── 31.png ├── 32.png ├── 33.png ├── 34.png ├── 35.png ├── 36.png ├── 37.png ├── 38.png ├── 39.png ├── 4.png ├── 40.png ├── 41.png ├── 42.png ├── 43.png ├── 44.png ├── 45.png ├── 46.png ├── 47.png ├── 5.png ├── 6.png ├── 7.png ├── 8.png ├── 9.png └── 3200.png ├── images ├── wind.png ├── humidity.png └── pressure.png ├── screenshot.png ├── README.md └── conkyrc /icons/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/0.png -------------------------------------------------------------------------------- /icons/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/1.png -------------------------------------------------------------------------------- /icons/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/10.png -------------------------------------------------------------------------------- /icons/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/11.png -------------------------------------------------------------------------------- /icons/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/12.png -------------------------------------------------------------------------------- /icons/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/13.png -------------------------------------------------------------------------------- /icons/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/14.png -------------------------------------------------------------------------------- /icons/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/15.png -------------------------------------------------------------------------------- /icons/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/16.png -------------------------------------------------------------------------------- /icons/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/17.png -------------------------------------------------------------------------------- /icons/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/18.png -------------------------------------------------------------------------------- /icons/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/19.png -------------------------------------------------------------------------------- /icons/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/2.png -------------------------------------------------------------------------------- /icons/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/20.png -------------------------------------------------------------------------------- /icons/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/21.png -------------------------------------------------------------------------------- /icons/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/22.png -------------------------------------------------------------------------------- /icons/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/23.png -------------------------------------------------------------------------------- /icons/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/24.png -------------------------------------------------------------------------------- /icons/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/25.png -------------------------------------------------------------------------------- /icons/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/26.png -------------------------------------------------------------------------------- /icons/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/27.png -------------------------------------------------------------------------------- /icons/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/28.png -------------------------------------------------------------------------------- /icons/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/29.png -------------------------------------------------------------------------------- /icons/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/3.png -------------------------------------------------------------------------------- /icons/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/30.png -------------------------------------------------------------------------------- /icons/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/31.png -------------------------------------------------------------------------------- /icons/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/32.png -------------------------------------------------------------------------------- /icons/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/33.png -------------------------------------------------------------------------------- /icons/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/34.png -------------------------------------------------------------------------------- /icons/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/35.png -------------------------------------------------------------------------------- /icons/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/36.png -------------------------------------------------------------------------------- /icons/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/37.png -------------------------------------------------------------------------------- /icons/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/38.png -------------------------------------------------------------------------------- /icons/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/39.png -------------------------------------------------------------------------------- /icons/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/4.png -------------------------------------------------------------------------------- /icons/40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/40.png -------------------------------------------------------------------------------- /icons/41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/41.png -------------------------------------------------------------------------------- /icons/42.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/42.png -------------------------------------------------------------------------------- /icons/43.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/43.png -------------------------------------------------------------------------------- /icons/44.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/44.png -------------------------------------------------------------------------------- /icons/45.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/45.png -------------------------------------------------------------------------------- /icons/46.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/46.png -------------------------------------------------------------------------------- /icons/47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/47.png -------------------------------------------------------------------------------- /icons/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/5.png -------------------------------------------------------------------------------- /icons/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/6.png -------------------------------------------------------------------------------- /icons/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/7.png -------------------------------------------------------------------------------- /icons/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/8.png -------------------------------------------------------------------------------- /icons/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/9.png -------------------------------------------------------------------------------- /icons/3200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/icons/3200.png -------------------------------------------------------------------------------- /images/wind.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/images/wind.png -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/screenshot.png -------------------------------------------------------------------------------- /images/humidity.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/images/humidity.png -------------------------------------------------------------------------------- /images/pressure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrmierzejewski/conkyrc/HEAD/images/pressure.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Conky configuration file 2 | ======================== 3 | 4 | These are my Conky configuration files. 5 | 6 | ![Conky](https://raw.github.com/zenzire/conkyrc/master/screenshot.png) 7 | 8 | A sleek, minimalist Conky configuration that displays real-time system information and weather data on your desktop. Features live weather forecasts with OpenWeatherMap integration, system resource monitoring (CPU, memory, disk I/O), network statistics, and process tracking—all in a clean, transparent overlay that stays out of your way. 9 | 10 | 11 | Requirements 12 | ------------ 13 | 14 | * Conky 1.10 or later (uses Lua-based configuration syntax) 15 | * Lua 5.1 or later (for Conky 1.10+ compatibility) 16 | 17 | 18 | Installation 19 | ------------ 20 | 21 | Fetch the configuration files from the GitHub repository: 22 | 23 | `` 24 | $ git clone git://github.com/mrmierzejewski/conkyrc.git ~/.conky 25 | `` 26 | 27 | Create link: 28 | 29 | `` 30 | ln -s ~/.conky/conkyrc ~/.conkyrc 31 | `` 32 | 33 | **Note:** This configuration uses the modern Lua-based syntax (Conky 1.10+). If you're using an older version of Conky, you may need to upgrade or use a legacy configuration format. 34 | 35 | Enjoy! 36 | 37 | Features 38 | -------- 39 | 40 | * weather with forecast 41 | * CPU graph 42 | * memory graph 43 | * network graph 44 | * processes 45 | 46 | Weather Configuration 47 | --------------------- 48 | 49 | This configuration uses OpenWeatherMap API (Yahoo Weather API was retired in 2019). 50 | 51 | To configure weather: 52 | 53 | 1. Get a free API key from https://openweathermap.org/api 54 | - Sign up for a free account 55 | - Navigate to API keys section 56 | - Copy your API key 57 | 58 | 2. Edit `conkyrc` and replace: 59 | - `YOUR_API_KEY` with your OpenWeatherMap API key 60 | - `YOUR_LOCATION` with your location (e.g., "London,UK", "New York,US", or coordinates like "40.7128,-74.0060") 61 | 62 | 3. Location format options: 63 | - City name: "London" 64 | - City with country: "London,UK" 65 | - Coordinates: "40.7128,-74.0060" 66 | 67 | Troubleshooting 68 | --------------- 69 | 70 | **Syntax Errors:** 71 | If you encounter syntax errors like "syntax error near 'yes'" or "loadstring" errors, ensure you're using Conky 1.10 or later. The configuration uses the modern Lua-based syntax. 72 | 73 | **Check your Conky version:** 74 | `` 75 | $ conky --version 76 | `` 77 | 78 | **For older Conky versions (< 1.10):** 79 | You'll need to upgrade Conky to use this configuration, or convert it back to the legacy format (not recommended as Yahoo Weather API is no longer available). 80 | 81 | **Weather not displaying:** 82 | - Verify your OpenWeatherMap API key is correct 83 | - Check that your location string is properly formatted 84 | - Ensure you have internet connectivity 85 | - Check the cached weather files: `~/.cache/weather-current.json` and `~/.cache/weather-forecast.json` 86 | 87 | -------------------------------------------------------------------------------- /conkyrc: -------------------------------------------------------------------------------- 1 | -- Conky settings 2 | conky.config = { 3 | background = true, 4 | update_interval = 1, 5 | double_buffer = true, 6 | no_buffers = true, 7 | imlib_cache_size = 10, 8 | 9 | -- Window specifications 10 | gap_x = 0, 11 | gap_y = 0, 12 | minimum_width = 268, 13 | minimum_height = 1220, 14 | maximum_width = 268, 15 | alignment = 'top_right', 16 | own_window = true, 17 | own_window_type = 'normal', 18 | own_window_transparent = true, 19 | own_window_argb_visual = true, 20 | own_window_argb_value = 255, 21 | own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below', 22 | border_inner_margin = 0, 23 | border_outer_margin = 0, 24 | 25 | -- Graphics settings 26 | draw_shades = false, 27 | default_shade_color = 'AAAAAA', 28 | draw_outline = false, 29 | default_outline_color = 'AAAAAA', 30 | draw_borders = false, 31 | draw_graph_borders = false, 32 | default_graph_width = 26, 33 | default_graph_height = 80, 34 | show_graph_scale = false, 35 | show_graph_range = false, 36 | 37 | -- Text settings 38 | use_xft = true, 39 | xftalpha = 0, 40 | font = 'Droid Sans:size=8', 41 | text_buffer_size = 256, 42 | override_utf8_locale = true, 43 | 44 | -- Useful shortenings 45 | short_units = true, 46 | pad_percents = 2, 47 | top_name_width = 30, 48 | 49 | -- Color scheme 50 | default_color = 'FFFFFF', 51 | color1 = 'FFFFFF', 52 | color2 = 'FFFFFF', 53 | color3 = 'FFFFFF', 54 | color4 = 'FFFFFF', 55 | color5 = 'DCDCDC', 56 | color6 = 'FFFFFF', 57 | color7 = 'FFFFFF', 58 | color8 = 'FFFFFF', 59 | }; 60 | 61 | conky.text = [[ 62 | # Weather configuration using OpenWeatherMap API 63 | # To use this, you need to: 64 | # 1. Get a free API key from https://openweathermap.org/api 65 | # 2. Set your location (city name, e.g., "London,UK" or "New York,US") 66 | # 3. Replace YOUR_API_KEY and YOUR_LOCATION below 67 | # Location can be: city name, "city,country", or "lat,lon" coordinates 68 | ${execi 300 curl -s "https://api.openweathermap.org/data/2.5/weather?q=YOUR_LOCATION&appid=YOUR_API_KEY&units=imperial" -o ~/.cache/weather-current.json} 69 | ${execi 300 curl -s "https://api.openweathermap.org/data/2.5/forecast?q=YOUR_LOCATION&appid=YOUR_API_KEY&units=imperial&cnt=25" -o ~/.cache/weather-forecast.json} 70 | \ 71 | # Weather 72 | \ 73 | ${goto 36}${voffset 0}${font Droid Sans :size=36}${color1}${execi 300 cat ~/.cache/weather-current.json | grep -o '"main":{[^}]*}' | grep -o '"temp":[^,}]*' | grep -o '[0-9.]*' | head -1 | cut -d. -f1}°${font}${color} 74 | # I had to comment out this line - was printing out and overlaying. 75 | #${goto 46}${voffset 14}${font Droid Sans :size=12}${color1}${execi 300 cat ~/.cache/weather-current.json | grep -o '"description":"[^"]*"' | grep -o '"[^"]*"' | head -1 | cut -d'"' -f2}${font}${color} 76 | \ 77 | ${color1}${alignr 55}${voffset -72}${execi 300 cat ~/.cache/weather-current.json | grep -o '"main":{[^}]*}' | grep -o '"pressure":[^,}]*' | grep -o '[0-9]*'} hPa${color} 78 | ${color1}${alignr 55}${voffset 7}${execi 300 cat ~/.cache/weather-current.json | grep -o '"main":{[^}]*}' | grep -o '"humidity":[^,}]*' | grep -o '[0-9]*'} %${color} 79 | ${color1}${alignr 55}${voffset 7}${execi 300 cat ~/.cache/weather-current.json | grep -o '"wind":{[^}]*}' | grep -o '"speed":[^,}]*' | grep -o '[0-9.]*' | head -1 | cut -d. -f1} mph${color} 80 | \ 81 | ${color3}${voffset 30}${alignc 77}${execi 300 date -d "+1 day" +%a 2>/dev/null || date -v+1d +%a 2>/dev/null | tr '[a-z]' '[A-Z]'}${color} 82 | ${color3}${voffset -13}${alignc}${execi 300 date -d "+2 days" +%a 2>/dev/null || date -v+2d +%a 2>/dev/null | tr '[a-z]' '[A-Z]'}${color} 83 | ${color3}${voffset -13}${alignc -77}${execi 300 date -d "+3 days" +%a 2>/dev/null || date -v+3d +%a 2>/dev/null | tr '[a-z]' '[A-Z]'}${color} 84 | \ 85 | ${color2}${voffset 40}${alignc 77}${execi 300 MIN1=$(cat ~/.cache/weather-forecast.json | grep -o '"temp":[^,}]*' | grep -o '[0-9.]*' | awk 'NR>=1&&NR<=8' | awk 'BEGIN{min=999}{if($1=1&&NR<=8' | awk 'BEGIN{max=-999}{if($1>max)max=$1}END{print int(max)}'); echo "${MIN1}°/${MAX1}°"}${color} 86 | ${color2}${voffset -13}${alignc}${execi 300 MIN2=$(cat ~/.cache/weather-forecast.json | grep -o '"temp":[^,}]*' | grep -o '[0-9.]*' | awk 'NR>=9&&NR<=16' | awk 'BEGIN{min=999}{if($1=9&&NR<=16' | awk 'BEGIN{max=-999}{if($1>max)max=$1}END{print int(max)}'); echo "${MIN2}°/${MAX2}°"}${color} 87 | ${color2}${voffset -13}${alignc -77}${execi 300 MIN3=$(cat ~/.cache/weather-forecast.json | grep -o '"temp":[^,}]*' | grep -o '[0-9.]*' | awk 'NR>=17&&NR<=24' | awk 'BEGIN{min=999}{if($1=17&&NR<=24' | awk 'BEGIN{max=-999}{if($1>max)max=$1}END{print int(max)}'); echo "${MIN3}°/${MAX3}°"}${color} 88 | ${hr 2} 89 | \ 90 | # Cpu, memory and disk IO 91 | \ 92 | ${voffset 20} 93 | ${goto 40}${cpugraph 26,190 FFFFFF FFFFFF -l} 94 | ${goto 40}Cpu:${alignr 39}${cpu}% 95 | 96 | ${goto 40}${memgraph 26,190 FFFFFF FFFFFF -l} 97 | ${goto 40}Mem:${alignr 39}${memperc}% 98 | 99 | ${goto 40}${diskiograph 26,190 FFFFFF FFFFFF -l} 100 | ${goto 40}Disk I/O:${alignr 39}${diskio} 101 | ${hr 2} 102 | \ 103 | # Network 104 | \ 105 | ${if_existing /proc/net/route wlan0} 106 | ${goto 40}${upspeedgraph wlan0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph wlan0 26,80 FFFFFF FFFFFF} 107 | ${goto 40}${color5}Up: ${color2}${upspeed wlan0}${color5}${goto 150}Down: ${color2}${downspeed wlan0} 108 | ${goto 40}${color5}Sent: ${color2}${totalup wlan0}${color5}${goto 150}Received: ${color2}${totaldown wlan0} 109 | ${endif} 110 | ${if_existing /proc/net/route eth0} 111 | ${goto 40}${upspeedgraph eth0 26,80 FFFFFF FFFFFF}${goto 150}${downspeedgraph eth0 26,80 FFFFFF FFFFFF} 112 | ${goto 40}${color5}Up: ${color2}${upspeed eth0}${color5}${goto 150}Down: ${color2}${downspeed eth0} 113 | ${goto 40}${color5}Sent: ${color2}${totalup eth0}${color5}${goto 150}Received: ${color2}${totaldown eth0} 114 | ${endif} 115 | ${hr 2} 116 | \ 117 | # Proceses 118 | \ 119 | ${goto 40}${color1}Proc${color}${alignr 39}${color1}${color1}Mem${color} 120 | ${goto 40}${color2}${top_mem name 1}${color}${alignr 39}${top_mem mem_res 1} 121 | ${goto 40}${color2}${top_mem name 2}${color}${alignr 39}${top_mem mem_res 2} 122 | ${goto 40}${color2}${top_mem name 3}${color}${alignr 39}${top_mem mem_res 3} 123 | ${goto 40}${color2}${top_mem name 4}${color}${alignr 39}${top_mem mem_res 4} 124 | ${goto 40}${color2}${top_mem name 5}${color}${alignr 39}${top_mem mem_res 5} 125 | 126 | ${goto 40}${color1}Proc${color}${alignr 39}${color1}Cpu %${color} 127 | ${goto 40}${color2}${top_mem name 1}${color}${alignr 39}${top cpu 1} % 128 | ${goto 40}${color2}${top_mem name 2}${color}${alignr 39}${top cpu 2} % 129 | ${goto 40}${color2}${top_mem name 3}${color}${alignr 39}${top cpu 3} % 130 | ${goto 40}${color2}${top_mem name 4}${color}${alignr 39}${top cpu 4} % 131 | ${goto 40}${color2}${top_mem name 5}${color}${alignr 39}${top cpu 5} % 132 | ${hr 2} 133 | \ 134 | # System shortcuts 135 | ${font Droid Sans :size=12} 136 | ${goto 40}W-t${alignr 40}Terminal 137 | ${goto 40}W-e${alignr 40}Editor 138 | ${goto 40}W-f${alignr 40}File browser 139 | ${goto 40}W-w${alignr 40}Web browser 140 | ${goto 40}C-W-F4${alignr 40}Log off 141 | \ 142 | # Various images including the icons of the forecast # 143 | \ 144 | ${image ~/.conky/images/pressure.png -p 214,20 -s 16x16}\ 145 | ${image ~/.conky/images/humidity.png -p 214,40 -s 16x16}\ 146 | ${image ~/.conky/images/wind.png -p 214,60 -s 16x16}\ 147 | ${execi 300 CODE1=$(cat ~/.cache/weather-forecast.json | grep -o '"id":[0-9]*' | awk 'NR==4' | grep -o '[0-9]*'); CODE1=$(echo $CODE1 | awk '{if($1>=200&&$1<300)print"4";else if($1>=300&&$1<400)print"9";else if($1>=500&&$1<600)print"12";else if($1>=600&&$1<700)print"14";else if($1==800)print"32";else if($1==801)print"30";else if($1==802)print"28";else if($1==803||$1==804)print"26";else print"32"}'); cp -f ~/.conky/icons/${CODE1}.png ~/.cache/weather-1.png 2>/dev/null || cp -f ~/.conky/icons/32.png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 41,120 -s 32x32}\ 148 | ${execi 300 CODE2=$(cat ~/.cache/weather-forecast.json | grep -o '"id":[0-9]*' | awk 'NR==12' | grep -o '[0-9]*'); CODE2=$(echo $CODE2 | awk '{if($1>=200&&$1<300)print"4";else if($1>=300&&$1<400)print"9";else if($1>=500&&$1<600)print"12";else if($1>=600&&$1<700)print"14";else if($1==800)print"32";else if($1==801)print"30";else if($1==802)print"28";else if($1==803||$1==804)print"26";else print"32"}'); cp -f ~/.conky/icons/${CODE2}.png ~/.cache/weather-2.png 2>/dev/null || cp -f ~/.conky/icons/32.png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 119,120 -s 32x32}\ 149 | ${execi 300 CODE3=$(cat ~/.cache/weather-forecast.json | grep -o '"id":[0-9]*' | awk 'NR==20' | grep -o '[0-9]*'); CODE3=$(echo $CODE3 | awk '{if($1>=200&&$1<300)print"4";else if($1>=300&&$1<400)print"9";else if($1>=500&&$1<600)print"12";else if($1>=600&&$1<700)print"14";else if($1==800)print"32";else if($1==801)print"30";else if($1==802)print"28";else if($1==803||$1==804)print"26";else print"32"}'); cp -f ~/.conky/icons/${CODE3}.png ~/.cache/weather-3.png 2>/dev/null || cp -f ~/.conky/icons/32.png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 195,120 -s 32x32}${font}\ 150 | ]]; 151 | --------------------------------------------------------------------------------