Code:
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
--[[
iprayer code number
Specify which angle method calculation to use. The angle methods that are
currently supported by ipraytime are,
1
Egyptian General Authority of Survey
Fajr/Isha Angle : 20/18
Used in : Africa, Indonesia, Iraq,
Jordan, Lebanon, Malaysia,
Singapore, Syria,
Parts of the USA
2
University of Islamic Sciences, Karachi (Shaf'i)
Fajr/Isha Angle : 18/18
Used in : Iran, Kuwait,
Parts of Europe
3
University of Islamic Sciences, Karachi (Hanafi)
Fajr/Isha Angle : 18/18
Used in : Afghanistan, Bangladesh,
India
4
Islamic Society of North America
Fajr/Isha Angle : 15/15
Used in : Canada, Parts of UK,
Parts of USA
5
Muslim World League (MWL)
Fajr/Isha Angle : 18/17
Used in : Parts of Europe,
Far East, Parts of USA
6
Umm Al\-Qurra University
Fajr/Isha Angl e : 19/0
Isha Interval : 90 minutes from Al\-Maghrib
prayer but set to 120
during Ramadan.
Used in : Saudi Arabia
7
Fixed Isha Angle Interval (always 90)
Fajr/Isha Angle : 19.5/0
Isha Interval : 90 minutes from Al\-Maghrib
prayer
Used in : Bahrain, Oman, Qatar, UAE
8
Egyptian General Authority of Survey (Egypt)
Fajr/Isha Angle : 19.5/17.5
Used in : Egypt
]]
conky.config = {
alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'Ubuntu:size=8',
double_buffer = true,
no_buffers = true,
text_buffer_size = 2048,
gap_x = 5,
gap_y = 60,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
own_window_argb_visual = true,
own_window_argb_value = 255,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
stippled_borders = 0,
update_interval = 1,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false
}
conky.text = [[
${color orange}${voffset -40}${font OpenLogos:size=122}v${font} ${font size=22}${voffset -68}${execi 9800 cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
${voffset}$color
${goto 22}${font good times:size=8}${voffset 4}${exec ~/.conky/sh_location.sh}${offset 24}${font Droid Sans:size=10}${time %A} $alignc${time %d %B %Y}${font}
${voffset 10}${font RadioSpace:size=16}${time %H:%M}${font}
${font Ubuntu:size=8}${voffset -12}$alignr${execi 4000 ~/.conky/hijr-date.sh} ${execi 4000 ~/.conky/hijr-month.sh} ${execi 4000 ~/.conky/hijr-year.sh} H${font}
${voffset -60}${goto 28}${font Masjid Al Imran:size=100}y${font}
${voffset -20}${goto 165}Prayer Times
${voffset 12}${font} Fajr Suhrq Dzuhur 'Ashr Maghrib Isha
${voffset 4}${font}${execi 40000 ipraytime -lat -6.5164909 -lon 108.3385978 -a 1 -s, --dst 0| awk 'NR==12 {print " "$2" "$3" "$4" "$5 " "$6 " "$7 }'}
${voffset 5}${font radiospacebold:size=8}${color #FFA54F}SYSTEM $hr${font}
$color${font StyleBats:size=8}a${font} ${color grey}Kernel${alignr}$color $kernel
$color${font StyleBats:size=8}d${font} ${color grey}Machine${alignr}$color $machine
$color${font StyleBats:size=8}M${font} ${color grey}Host${alignr}$color $nodename
$color${font StyleBats:size=8}g${font} ${color grey}Uptime${alignr}$color $uptime
$color${font StyleBats:size=8}n${font} ${color grey}Frequency ${alignr}$color $freq_g Ghz
$color${font StyleBats:size=8}k${font} ${color grey}Processes ${alignc}$color$processes ${goto 140}${color grey}Running ${alignr}$color$running_processes
${voffset 5}${color #FFA54F}${font radiospacebold:size=8}CPU ${alignr}${cpu cpu} %
${voffset 5}$color${font StyleBats:size=8}k${font} ${color grey}CPU 1 ${color #A7D8DE}${goto 65}${cpu cpu1}% ${goto 100}${cpubar cpu1 6,155}
$color${font StyleBats:size=8}k${font} ${color grey}CPU 2 ${color #A7D8DE}${goto 65}${cpu cpu2}% ${goto 100}${cpubar cpu2 6,155}
$color${font StyleBats:size=8}k${font} ${color grey}CPU 3 ${color #A7D8DE}${goto 65}${cpu cpu3}% ${goto 100}${cpubar cpu3 6,155}
$color${font StyleBats:size=8}k${font} ${color grey}CPU 4 ${color #A7D8DE}${goto 65}${cpu cpu4}% ${goto 100}${cpubar cpu4 6,155}
${voffset 5}$color${font StyleBats:size=8}l ${font}${color grey}RAM ${goto 100}$memperc%${alignr}$color $mem/$memmax
${color #A7D8DE}${membar 4}
$color${font StyleBats:size=8}4 ${font}${color grey}Swap ${goto 100}$swapperc% ${alignr}$color $swap/$swapmax
${color #A7D8DE}${swapbar 4}
$color${font StyleBats:size=8}x ${font}${color grey}Root ${goto 100}$fs_used_perc%${alignr} $color${fs_used /}/${fs_size /}
${color #A7D8DE}${fs_bar 6 /}${color}
${voffset 5}${font radiospacebold:size=8}${color #FFA54F}NETWORK $hr${color}${font}
${font wifi:size=8}C ${font}${color grey}SSID ${alignr}$color${wireless_essid wlp1s0}
${font PizzaDudeBullets:size=8}N ${font}${color grey}Up ${goto 70}$color${upspeed wlp1s0} kb/s ${color grey}${goto 130}Total${alignr}$color${totalup wlp1s0}
${font PizzaDudeBullets:size=8}T ${font}${color grey}Down${goto 70}$color${downspeed wlp1s0} kb/s ${color grey}${goto 130}Total ${alignr}$color${totaldown wlp1s0}
${font wifi:size=8}B ${font}${color grey}Channel $color${alignr}${wireless_channel wlp1s0}
${font wifi:size=8}B ${font}${color grey}Wireless Mode $color${alignr}${wireless_mode wlp1s0}
${font wifi:size=8}5 ${font}${color grey}Quality $color${alignr}${wireless_link_qual_perc wlp1s0} %
${font PizzaDudeBullets:size=8}a ${font}${color grey}Local IP ${alignr}$color${addr wlp1s0}
${font PizzaDudeBullets:size=8}a ${font}${color grey}Public IP ${alignr}$color${execi 60 wget -O - -q icanhazip.com}
${voffset 5}${font radiospacebold:size=8}${color #FFA54F}TOP PROSES $hr${font}
${color grey}Name ${goto 120} PID ${goto 160} CPU% ${goto 210} MEM%
${font StyleBats:size=8}h${font}${color lightgrey} ${top name 1} ${goto 120}${top pid 1} ${goto 160} ${top cpu 1} ${goto 210} ${top mem 1}
${font StyleBats:size=8}h${font}${color lightgrey} ${top name 2} ${goto 120}${top pid 2} ${goto 160} ${top cpu 2} ${goto 210} ${top mem 2}
${font StyleBats:size=8}h${font}${color lightgrey} ${top name 3} ${goto 120}${top pid 3} ${goto 160} ${top cpu 3} ${goto 210} ${top mem 3}
${font StyleBats:size=8}h${font}${color lightgrey} ${top name 4} ${goto 120}${top pid 4} ${goto 160} ${top cpu 4} ${goto 210} ${top mem 4}
]]
This hijr-date.sh
Bookmarks