├── res ├── BG.png ├── ava.png └── Screenshot from 2023-07-30 16-08-50.png ├── .gitattributes ├── Wallpaper.jpg ├── fonts ├── Material.ttf ├── Scout-Regular.otf ├── BebasNeue-Regular.ttf └── Nunito-VariableFont_wght.ttf ├── icons └── JDWS-02 │ ├── 01d.png │ ├── 01n.png │ ├── 02d.png │ ├── 02n.png │ ├── 03d.png │ ├── 03n.png │ ├── 04d.png │ ├── 04n.png │ ├── 09d.png │ ├── 09n.png │ ├── 10d.png │ ├── 10n.png │ ├── 11d.png │ ├── 11n.png │ ├── 13d.png │ ├── 13n.png │ ├── 50d.png │ ├── 50n.png │ └── jdwi-unknown.png ├── scripts ├── weather-icon.sh ├── playerctl.sh ├── wifi-icon ├── ssid ├── weather-v2.0.sh ├── Greeting.sh └── rings-v1.2.1.lua ├── start.sh ├── README.md └── Alterf.conf /res/BG.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/res/BG.png -------------------------------------------------------------------------------- /res/ava.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/res/ava.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/Wallpaper.jpg -------------------------------------------------------------------------------- /fonts/Material.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/fonts/Material.ttf -------------------------------------------------------------------------------- /icons/JDWS-02/01d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/01d.png -------------------------------------------------------------------------------- /icons/JDWS-02/01n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/01n.png -------------------------------------------------------------------------------- /icons/JDWS-02/02d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/02d.png -------------------------------------------------------------------------------- /icons/JDWS-02/02n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/02n.png -------------------------------------------------------------------------------- /icons/JDWS-02/03d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/03d.png -------------------------------------------------------------------------------- /icons/JDWS-02/03n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/03n.png -------------------------------------------------------------------------------- /icons/JDWS-02/04d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/04d.png -------------------------------------------------------------------------------- /icons/JDWS-02/04n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/04n.png -------------------------------------------------------------------------------- /icons/JDWS-02/09d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/09d.png -------------------------------------------------------------------------------- /icons/JDWS-02/09n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/09n.png -------------------------------------------------------------------------------- /icons/JDWS-02/10d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/10d.png -------------------------------------------------------------------------------- /icons/JDWS-02/10n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/10n.png -------------------------------------------------------------------------------- /icons/JDWS-02/11d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/11d.png -------------------------------------------------------------------------------- /icons/JDWS-02/11n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/11n.png -------------------------------------------------------------------------------- /icons/JDWS-02/13d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/13d.png -------------------------------------------------------------------------------- /icons/JDWS-02/13n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/13n.png -------------------------------------------------------------------------------- /icons/JDWS-02/50d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/50d.png -------------------------------------------------------------------------------- /icons/JDWS-02/50n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/50n.png -------------------------------------------------------------------------------- /fonts/Scout-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/fonts/Scout-Regular.otf -------------------------------------------------------------------------------- /fonts/BebasNeue-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/fonts/BebasNeue-Regular.ttf -------------------------------------------------------------------------------- /icons/JDWS-02/jdwi-unknown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/icons/JDWS-02/jdwi-unknown.png -------------------------------------------------------------------------------- /fonts/Nunito-VariableFont_wght.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/fonts/Nunito-VariableFont_wght.ttf -------------------------------------------------------------------------------- /res/Screenshot from 2023-07-30 16-08-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sudoyasir/conky-purple/HEAD/res/Screenshot from 2023-07-30 16-08-50.png -------------------------------------------------------------------------------- /scripts/weather-icon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #Closebox 73 4 | 5 | theme=$1 6 | weather_code=$2 7 | cp -r ~/.conky/Alterf/icons/${theme}/${weather_code}.png ~/.cache/weather-icon.png 8 | 9 | exit 10 | -------------------------------------------------------------------------------- /scripts/playerctl.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Closebox73 4 | # Simple script to get playerctl status 5 | 6 | PCTL=$(playerctl status) 7 | 8 | if [[ ${PCTL} == "" ]]; then 9 | echo "No Music" 10 | else 11 | playerctl metadata xesam:artist 12 | fi 13 | 14 | exit 15 | -------------------------------------------------------------------------------- /scripts/wifi-icon: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # A simple script to display wifi icon connected or not 4 | # Enjoy! 5 | # Khiky_merveilles 6 | 7 | SSID_NAME=$(/sbin/iwgetid -r) 8 | 9 | if [[ "${SSID_NAME}" != "" ]]; then 10 | echo "" 11 | else 12 | echo "" 13 | fi 14 | 15 | exit 16 | -------------------------------------------------------------------------------- /start.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # This command will close all active conky 4 | killall conky 5 | sleep 2s 6 | 7 | # Only the config listed below will be avtivated 8 | # if you want to combine with another theme, write the command here 9 | conky -c $HOME/.config/conky/Alterf/Alterf.conf &> /dev/null & 10 | 11 | exit 12 | -------------------------------------------------------------------------------- /scripts/ssid: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # A simple script to display wifi name 4 | # 'ssid -i' = with icon, 'ssid' = text only 5 | # Cheers! 6 | # Addy 7 | 8 | SSID_NAME=$(/sbin/iwgetid -r | cut -b 1-18) 9 | 10 | if [[ "${SSID_NAME}" != "" ]]; then 11 | if [[ $1 = "-i" ]]; then 12 | echo " ${SSID_NAME}" 13 | else 14 | echo "${SSID_NAME}" 15 | fi 16 | else 17 | echo "Not Connected" 18 | fi 19 | 20 | exit 21 | -------------------------------------------------------------------------------- /scripts/weather-v2.0.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # v2.0 Closebox73 4 | # This script is to get weather data from openweathermap.com in the form of a json file 5 | # so that conky will still display the weather when offline even though it doesn't up to date 6 | 7 | # Variables 8 | # get your city id at https://openweathermap.org/find and replace 9 | city_id=1172451 10 | 11 | # you can use this or replace with yours 12 | api_key=b974e886e91a708f2fcaec63a8fff499 13 | 14 | # choose between metric for Celcius or imperial for fahrenheit 15 | unit=metric 16 | 17 | # i'm not sure it will support all languange, 18 | lang=en 19 | 20 | # Main command 21 | url="api.openweathermap.org/data/2.5/weather?id=${city_id}&appid=${api_key}&cnt=5&units=${unit}&lang=${lang}" 22 | curl ${url} -s -o ~/.cache/weather.json 23 | 24 | exit 25 | -------------------------------------------------------------------------------- /scripts/Greeting.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # ---------------------------------------------------------------------------------- 3 | 4 | Greeting=$(date +%H) 5 | cat $0 | grep $Greeting | sed 's/# '$Greeting' //' 6 | # 7 | 8 | # -------------------------------------------------------------------------------- 9 | # 00 Good Midnight 10 | # 01 Good Morning 11 | # 02 Good Morning 12 | # 03 Good Morning 13 | # 04 Good Morning 14 | # 05 Good Morning 15 | # 06 Good Morning 16 | # 07 Good Morning 17 | # 08 Good Morning 18 | # 09 Good Morning 19 | # 10 Good Morning 20 | # 11 Good Day 21 | # 12 Good Day 22 | # 13 Good Afternoon 23 | # 14 Good Afternoon 24 | # 15 Good Afternoon 25 | # 16 Good Afternoon 26 | # 17 Good Afternoon 27 | # 18 Good Evening 28 | # 19 Good Evening 29 | # 20 Good Evening 30 | # 21 Good Evening 31 | # 22 Good Evening 32 | # 23 Good Evening 33 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project Introduction: Conky Widget 2 | 3 | This Conky widget is a minimalist yet powerful addition to your desktop. It seamlessly displays the date, greets you with a warm welcome, provides live weather updates, and keeps track of your currently playing music. Stay organized, informed, and entertained with this compact and customizable information center. 4 | 5 | 6 | 7 | ![Screenshoots](https://github.com/yasir2002/conky-purple/blob/main/res/Screenshot%20from%202023-07-30%2016-08-50.png?raw=true) 8 | 9 | ## Sections 10 | * **Date:** The current date is prominently displayed at the top of the widget, ensuring you stay on schedule and organized throughout the day. 11 | * **Greeting to User:** A warm and personalized greeting welcomes you whenever you start your day or activate the widget, adding a touch of friendliness to your desktop. 12 | * **Weather Updates:** Stay ahead of the weather with real-time weather updates. The widget fetches and displays the current weather conditions, including temperature, weather description, and even an icon to represent the weather status. 13 | * **Now Playing:** Never lose track of the music you're listening to. The widget shows the song title, artist name, and album information of the currently playing track, making it convenient to enjoy your favorite tunes without leaving your work environment. 14 | 15 | 16 | 17 | ## Reach Me Out 18 | ![Gmail](https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=gmail&logoColor=white) 19 | * y451rmahar@gmail.com 20 | * yasirmahar117@gmail.com 21 | -------------------------------------------------------------------------------- /Alterf.conf: -------------------------------------------------------------------------------- 1 | conky.config = { 2 | --============================================================================== 3 | 4 | -- Created : 2021/Oct/05 5 | -- This theme is for conky version 1.10.8 or newer 6 | -- 7 | -- ALTERF 8 | -- ( A part of Leonis Conky themes pack ) 9 | -- 10 | -- author : Closebox73 11 | -- variant : Playerctl - Fahrenheit 12 | -- license : Distributed under the terms of GPLv3 13 | -- notes : Created on 1366x768 Monitor 14 | 15 | --============================================================================== 16 | 17 | -- Size and Position settings -- 18 | alignment = 'left', 19 | gap_x = 100, 20 | gap_y = 70, 21 | maximum_width = 360, 22 | minimum_height = 550, 23 | minimum_width = 360, 24 | 25 | -- Text settings -- 26 | use_xft = true, 27 | override_utf8_locale = true, 28 | font = 'Roboto:light:size=9', 29 | 30 | -- Color Settings -- 31 | default_color = 'white', 32 | default_outline_color = 'white', 33 | default_shade_color = 'white', 34 | color1 = 'FFFFFF', 35 | color2 = 'FF3A70', 36 | color3 = '808080', 37 | 38 | -- Window Settings -- 39 | background = false, 40 | border_width = 1, 41 | draw_borders = false, 42 | draw_graph_borders = false, 43 | draw_outline = false, 44 | draw_shades = false, 45 | own_window = true, 46 | own_window_colour = 'FFFFFF', 47 | own_window_class = 'Conky', 48 | own_window_argb_value = 0, 49 | own_window_type = 'desktop', 50 | own_window_transparent = true, 51 | own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', 52 | stippled_borders = 0, 53 | 54 | -- Others -- 55 | cpu_avg_samples = 2, 56 | net_avg_samples = 2, 57 | double_buffer = true, 58 | out_to_console = false, 59 | out_to_stderr = false, 60 | extra_newline = false, 61 | update_interval = 1, 62 | uppercase = false, 63 | use_spacer = 'none', 64 | show_graph_scale = false, 65 | show_graph_range = false, 66 | lua_load = '~/.conky/Alterf/scripts/rings-v1.2.1.lua', 67 | lua_draw_hook_pre = 'ring_stats', 68 | } 69 | 70 | conky.text = [[ 71 | ${execi 100 ~/.conky/Alterf/scripts/weather-v2.0.sh}\ 72 | ${execi 100 ~/.conky/Alterf/scripts/weather-icon.sh JDWS-02 $(cat ~/.cache/weather.json | jq -r '.weather[0].icon')}\ 73 | ${image ~/.conky/Alterf/res/BG.png -s 350x350 -p 0,10}\ 74 | ${image ~/.conky/Alterf/res/ava.png -s 56x56 -p 24,20}\ 75 | ${image ~/.cache/weather-icon.png -p 116,298 -s 35x35}\ 76 | ${offset 110}${voffset 30}${color1}${font Scout:size=12}Hello ${font Scout:bold:size=12}${execi 600 whoami | sed "s|\<.|\U&|g"} 77 | ${offset 110}${voffset 0}${color1}${font Scout:size=12}Wellcome Back!! 78 | ${offset 15}${voffset 30}${color1}${font Scout:size=25}${execi 600 ~/.conky/Alterf/scripts/Greeting.sh}!! 79 | ${alignr 167}${voffset 15}${color}${font Nunito:bold:size=35}${time %d}${font} 80 | ${offset 200}${voffset -42}${color}${font Nunito:bold:size=12}${time %a}${font} 81 | ${offset 200}${voffset -2}${color}${font Nunito:bold:size=12}${time %B}${font} 82 | ${offset 35}${voffset 50}${color2}${font Scout:size=12}${execi 100 cat ~/.cache/weather.json | jq -r '.name'} 83 | ${offset 35}${voffset 0}${color}${font Scout:size=12}${execi 100 cat ~/.cache/weather.json | jq -r '.weather[0].description' | sed "s|\<.|\U&|g"}${font} 84 | ${offset 210}${voffset -35}${color}${font Material:size=19}${execi 3 ~/.conky/Alterf/scripts/wifi-icon}${font} 85 | ${offset 245}${voffset -30}${color}${font Scout:bold:size=9}Wi-Fi : 86 | ${offset 245}${voffset 0}${color}${font Scout:size=9}${execi 5 ~/.conky/Alterf/scripts/ssid}${font} 87 | ${offset 45}${voffset 30}${color}${font Bebas Neue:size=25}${execi 100 cat ~/.cache/weather.json | jq '.main.temp' | awk '{print int($1+0.5)}'}°C${font} 88 | ${offset 15}${voffset 50}${color1}${font Material:size=20}${font} 89 | ${offset 15}${voffset 0}${if_running mpd}${color1}${font Scout:size=12}${exec playerctl status} 90 | ${offset 15}${voffset 0}${font Scout:bold:size=25}${exec ~/.conky/Alterf/scripts/playerctl.sh}${font} 91 | ${offset 15}${voffset 5}${font Scout:size=12}${exec playerctl metadata xesam:title} 92 | ]] 93 | -------------------------------------------------------------------------------- /scripts/rings-v1.2.1.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | Ring Meters by londonali1010 (2009) 3 | 4 | This script draws percentage meters as rings. It is fully customisable; all options are described in the script. 5 | 6 | IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error. 7 | 8 | To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua): 9 | lua_load ~/scripts/rings-v1.2.1.lua 10 | lua_draw_hook_pre ring_stats 11 | 12 | Changelog: 13 | + v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009) 14 | + v1.2 -- Added option for the ending angle of the rings (07.10.2009) 15 | + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009) 16 | + v1.0 -- Original release (28.09.2009) 17 | ]] 18 | 19 | settings_table = { 20 | 21 | { 22 | name='cpu', 23 | arg='cpu0', 24 | max=100, 25 | bg_colour=0xC4C4C4, 26 | bg_alpha=0.2, 27 | fg_colour=0x1EF75E 28 | , 29 | fg_alpha=0.8, 30 | x=307, y=331, 31 | radius=23, 32 | thickness=8, 33 | start_angle=0, 34 | end_angle=360, 35 | }, 36 | { 37 | name='memperc', 38 | arg='', 39 | max=100, 40 | bg_colour=0xC4C4C4, 41 | bg_alpha=0.2, 42 | fg_colour=0x1EF75E 43 | , 44 | fg_alpha=0.8, 45 | x=229, y=331, 46 | radius=23, 47 | thickness=8, 48 | start_angle=0, 49 | end_angle=360 50 | }, 51 | 52 | 53 | } 54 | 55 | require 'cairo' 56 | 57 | function rgb_to_r_g_b(colour,alpha) 58 | return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha 59 | end 60 | 61 | function draw_ring(cr,t,pt) 62 | local w,h=conky_window.width,conky_window.height 63 | 64 | local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle'] 65 | local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha'] 66 | 67 | local angle_0=sa*(2*math.pi/360)-math.pi/2 68 | local angle_f=ea*(2*math.pi/360)-math.pi/2 69 | local t_arc=t*(angle_f-angle_0) 70 | 71 | -- Draw background ring 72 | 73 | cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f) 74 | cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) 75 | cairo_set_line_width(cr,ring_w) 76 | cairo_stroke(cr) 77 | 78 | -- Draw indicator ring 79 | 80 | cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc) 81 | cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) 82 | cairo_stroke(cr) 83 | end 84 | 85 | function conky_ring_stats() 86 | local function setup_rings(cr,pt) 87 | local str='' 88 | local value=0 89 | 90 | str=string.format('${%s %s}',pt['name'],pt['arg']) 91 | str=conky_parse(str) 92 | 93 | value=tonumber(str) 94 | if value == nil then value = 0 end 95 | pct=value/pt['max'] 96 | 97 | draw_ring(cr,pct,pt) 98 | end 99 | 100 | if conky_window==nil then return end 101 | local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height) 102 | 103 | local cr=cairo_create(cs) 104 | 105 | local updates=conky_parse('${updates}') 106 | update_num=tonumber(updates) 107 | 108 | if update_num>5 then 109 | for i in pairs(settings_table) do 110 | setup_rings(cr,settings_table[i]) 111 | end 112 | end 113 | cairo_surface_destroy(cs) 114 | cairo_destroy(cr) 115 | end 116 | --------------------------------------------------------------------------------