conky:
Code: Select all
## killall conky && conky -c /media/5/Conky/S11_Vert.conky &
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title S11
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes
### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0 #255
minimum_size 120 0 ##820 260 ## width, height
maximum_width 120 ##820 ## width, usually a good idea to equal minimum width
#gap_x 0 # left-right
#gap_y 0 # up-down
gap_x 10 # left-right
gap_y 10 # up-down
alignment tr
##################################left################# End Window Settings ###
### Font Settings #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Liberation Sans:size=15
xftfont monofur:bold:size=11
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
### WARNING ### These do NOT play well with /media/5/Conky/LUA/draw-bg.lua ###
draw_shades yes #### <<<--- yes --- To see it easier on light screens.
default_shade_color 000000
draw_outline no #### <<<--- yes --- Amplifies text if yes OJO with changing fonts
default_outline_color 000000
uppercase no
###################################################### End Font Settings ###
### Color Settings #########################################################
#default_shade_color black
#default_outline_color black
#default_color DCDCDC #220 220 220 Gainsboro
#default_color C0C0C0 #192 192 192 Silver
default_color B0E0E6 #176 224 230 PowderBlue
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 D8BFD8 #216 191 216 Thistle
color3 9ACD32 #154 205 50 YellowGreen
color4 48D1CC # 72 209 204 MediumTurquoise
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 5F9EA0 # 95 158 160 CadetBlue
color8 BDB76B #189 183 107 DarkKhaki
color9 CD5C5C #205 92 92 IndianRed #FF0000 #255 0 0 Red
##################################################### End Color Settings ###
### Borders Section ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none
# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 1536
# Subtract (file system) buffers from used memory?
no_buffers yes
# change GiB to G and MiB to M
short_units yes
# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2
# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384
# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit
## Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value
## if you use $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0
############################################## End Miscellaneous Section ###
### LUA Settings ###########################################################
## Above and After TEXT - requires a composite manager or it blinks.
##
# lua_load ~/wea_conky/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No composite manager required - no blinking!)
##
lua_load /media/5/Conky/LUA/draw-bg.lua
# lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.3
# TEXT
update_interval 1
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.3}${goto 45}${font monofur:bold:size=16}${color5}${time %b}${color}${font}
${execpi 7200 ncal -h | /media/5/Conky/scripts/ncal.awk}
${goto 40}${font monofur:bold:size=16}${color5}${time %Y}${color}${font}
${voffset -170}${color5}${goto 90}${font LED_mono:size=20}${time %H}
${goto 90}${time %M}
${goto 90}${time %S}${font}${color}${voffset 70}
${alignc}${uptime_short}
${alignc}${membar 0,110}
${alignc}${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs}
${alignc}${color5}${kernel}${color}
${alignc}CPU Info
${color5}${alignc}${membar 0,60}${color}
${alignc}CPU μm ${color5}${freq_g}${color}
${alignc}Avg ${if_match ${cpu cpu0}<10}${color1}00${color5}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color5}0${color7}${cpu cpu0}\
${else}${color9}${cpu cpu0}${endif}${endif}${color5} %${color}
${alignc}${color5}1 ${color}| ${color5}2 ${color}| ${color5}3${color}
${alignc}${if_match ${cpu cpu1}<10}${color1}00${color5}${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100}${color1}0${color7}${cpu cpu1}\
${else}${color9}${cpu cpu1}${endif}${endif}${color}\
| ${if_match ${cpu cpu2}<10}${color1}00${color5}${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100}${color1}0${color7}${cpu cpu2}\
${else}${color9}${cpu cpu2}${endif}${endif}${color}\
| ${if_match ${cpu cpu3}<10}${color1}00${color5}${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100}${color1}0${color7}${cpu cpu3}\
${else}${color9}${cpu cpu3}${endif}${endif}${color}
${alignc}Sensors
${color5}${alignc}${membar 0,50}${color}
CPU ${color5}${platform f71882fg.2560 temp 1}${color}°\
${alignr}MB ${color5}${platform f71882fg.2560 temp 2}${color}°
GPU ${color5}${nvidia temp}${color}°\
${alignr}HD ${color5}${hddtemp /dev/sda}${color}°
${alignc}Fan ${color5}${platform f71882fg.2560 fan 1} ${color}RPM
${alignc}NVIDIA Freq
${alignc}GPU ${color5}${nvidia gpufreq} ${color}MHz
${alignc}MEM ${color5}${nvidia memfreq} ${color}MHz
${alignc}Disk Activity
${color5}${alignc}${membar 0,90}${color}
Read ${color5}${diskio_read /dev/sda}${color}
Write ${color5}${diskio_write /dev/sda}${color}
/Root ${color5}${fs_size /}${color}
Free ${color5}${fs_free /}${color}
Used ${color5}${fs_used_perc /} %${color}
/Home ${color5}${fs_size /home}${color}
Free ${color5}${fs_free /home}${color}
Used ${color5}${fs_used_perc /home} %${color}
/M/5 ${color5}${fs_size /media/5}${color}
Free ${color5}${fs_free /media/5}${color}
Used ${color5}${fs_used_perc /media/5} %${color}
${alignc}Network Totals
${alignc}${color5}${membar 0,100}${color}
tx ↑ ${upspeed eth0}
${color0}rx ↓ ${downspeed eth0}${color}
${color5}${exec date --date="0 day" | awk '{print $3" "$2}'}${alignr}${execpi 300 vnstat | grep "today" | awk '{print $8" "$9}'}${color}
tx ↑${alignr}${execpi 300 vnstat | grep "today" | awk '{print $5" "$6}'}
${color0}rx ↓${alignr}${execpi 300 vnstat | grep "today" | awk '{print $2" "$3}'}${color}
${color5}${execpi 3600 date --date="-1 day" | awk '{print $3" "$2}'}${alignr}${execpi 300 vnstat | grep "yesterday" | awk '{print $8" "$9}'}${color}
tx ↑${alignr}${execpi 300 vnstat | grep "yesterday" | awk '{print $5" "$6}'}
${color0}rx ↓${alignr}${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3}'}${color}
${color5}Curr Wk${alignr}${execpi 300 vnstat -w | grep "current week" | awk '{print $9" "$10}'}${color}
tx ↑${alignr}${execpi 300 vnstat -w | grep "current week" | awk '{print $6" "$7}'}
${color0}rx ↓${alignr}${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4}'}${color}
${color5}${time %b %Y}${alignr}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}${color}
tx ↑${alignr}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}
${color0}rx ↓${alignr}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}${voffset -170}
Code: Select all
#!/usr/bin/gawk -f
# based on: cal.C512.sh
# a bash script by Crinos512
#####################################################################
# #
# ncal.awk script by dk75 #
# #
# usage: #
# ncal -h | ncal.awk - if Sunday is a first day of #
# the week #
# ncal -h | ncal.awk monday=TRUE - if Monday is a first day of #
# the week #
# #
#####################################################################
BEGIN \
{
weekend[1]=7
weekend[2]=1
if ( ARGV[1]=="monday=TRUE" )
{
weekend[1]=6
weekend[2]=7
}
today=strftime("%02d")
}
NR==1 \
{
month=$1
year=$2
}
NR>1 \
{
gsub(/ {4}/," 0 ", $0)
days[NR-1,1]=$1
days[NR-1,2]=$2
days[NR-1,3]=$3
days[NR-1,4]=$4
days[NR-1,5]=$5
days[NR-1,6]=$6
days[NR-1,7]=$7
}
END \
{
#############################################################
# preparing and formatting data #
#############################################################
for ( i=1; i<=7; i++ )
{
for ( j=2; j<=7; j++ )
{
days[i,j]=sprintf("%02d", days[i,j])
if ( days[i,j]=="00" )
days[i,j]="··"
if ( days[i,j]==today )
days[i,j]="${color5}"days[i,j]"${color}"
else
days[i,j]="${color}"days[i,j]"${color}"
}
if ( i==weekend[1] )
days[i,1]="${color5}"days[i,1]"${color}"
else if ( i==weekend[2] )
days[i,1]="${color5}"days[i,1]"${color}"
else
days[i,1]="${color1}"days[i,1]"${color}"
}
# ###########################################################
#############################################################
# displaying data #
#############################################################
#print "${alignc}${color6}"month"${color}"
for ( j=0; j<=1; j++ )
{
for ( i=1; i<=7; i++ )
{
printf "%s %s %s %s\n", days[i,1], days[i,2+j], days[i,4+j], days[i,6+j]
}
}
#print "${alignc}${color6}"year"${color}"
}