1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | conky.config = {
use_xft = true,
font = 'Schumacher Clean',
-- Text alpha when using Xft
xftalpha = 1,
-- mail_spool $MAIL
xinerama_head = 0,
-- Update interval in seconds
update_interval = 2.0,
-- Create own window instead of using desktop (required in nautilus) normal desktop or override
own_window = true,
own_window_class = 'Conky',
-- own_window_type = 'override',
own_window_type = normal,
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
-- defaulty
default_bar_width = 120, default_bar_height = 7,
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
-- Minimum size of text area
minimum_width = 200, minimum_height = 5,
maximum_width = 200,
-- Draw shades?
draw_shades = true,
-- Draw outlines?
draw_outline = false,-- amplifies text
-- Draw borders around text
draw_borders = false,
-- Draw borders around graph
draw_graph_borders = true,
-- Stippled borders?
stippled_borders = 3,
-- border margins
--border_margin 5
-- border widt5
--border_width 6
-- Default colors and also border colors, grey90 == #e5e5e5
default_color = 'grey90',
--default_shade_color black
default_outline_color = 'DarkGrey',
-- Text alignment, other possible values are commented
--alignment top_left
alignment = 'top_right',
--alignment bottom_left
--alignment bottom_right
--alignment middle_right
-- Gap between borders of screen and text
gap_x = 70,
gap_y = 50,
-- Subtract file system buffers from used memory?
no_buffers = true,
-- set to yes if you want all text to be in uppercase
uppercase = false,
};
conky.text = [[
${color #ffd700}uptime: ${color}$uptime ${alignr}${acpitemp}'C
${color #ffd700}cpu: ${color}${cpu cpu0}% ${color #ffd700}proc: $color$processes ${alignr}${freq} MHz
${color #006791}${cpugraph 40,0 ffd700 B50404 -t}
${color #ffd700}$alignr $loadavg
${voffset -10}${color #ff6a6a}${top cpu 1} ${top name 1} ${top mem 1}$color
${color #ffc125}${top cpu 2} ${top name 2} ${top mem 2}$color
${color #eeee00}${top cpu 3} ${top name 3} ${top mem 3}$color
${color #c0ff3e}${top cpu 4} ${top name 4} ${top mem 4}$color
${color #00DB19}${top cpu 5} ${top name 5} ${top mem 5}$color
${voffset -5}${color #ffd700} ram: ${color #ffd700}${membar}${color} $memperc%
${color #ffd700} sys: ${fs_bar /}${color} ${fs_used_perc /}%
${color #ffd700}home: ${fs_bar /home}${color} ${fs_used_perc /home}%
${if_mounted /mnt/a}${color #ffd700} m: ${fs_bar /mnt/a}${color} ${fs_used_perc /mnt/a}%${else}${color #776714} a:${endif}
${color #ffd700}batt: ${color #ffd700}${battery_bar}${color} $battery_percent% ${color #ffd700}${battery_short}${color}
${alignc}${battery_time}
${voffset -10}${color #ff6a6a}${top_mem mem 1} ${top_mem name 1} ${top_mem cpu 1}$color
${color #ffc125}${top_mem mem 2} ${top_mem name 2} ${top_mem cpu 2}$color
${color #eeee00}${top_mem mem 3} ${top_mem name 3} ${top_mem cpu 3}$color
${color #c0ff3e}${top_mem mem 4} ${top_mem name 4} ${top_mem cpu 4}$color
${color #00DB19}${top_mem mem 5} ${top_mem name 5} ${top_mem cpu 5}$color
${voffset -10}${color #006791}${diskiograph_read 25,0 ffd700 B50404 -t}
${voffset -8}${color #006791}${diskiograph_write 25,0 ffd700 B50404 -t}
${voffset -55}${offset 5}${color #ffd700}R: $color$diskio_read$color
${voffset 18}${offset 5}${color #ffd700}W: $color$diskio_write$color
${voffset 3}${alignr}${execi 8 /usr/local/bin/conky_fan.sh}
${if_up wlp3s0}${if_match "${addr wlp3s0}" != "No Address"}${voffset -5}${color #ffd700}wlan: ${wireless_link_bar wlp3s0} ${color}${wireless_link_qual_perc wlp3s0}%
${alignc}${wireless_essid wlp3s0} (${wireless_bitrate wlp3s0})
${alignc}${addr wlp3s0}
${color #006791}${downspeedgraph wlp3s0 ffd700 B50404 -t}
${voffset -8}${color #006791}${upspeedgraph wlp3s0 ffd700 B50404 -t}
${voffset -55}${offset 5}${color #ffd700}D: $color${downspeed wlp3s0}
${voffset 18}${offset 5}${color #ffd700}U: $color${upspeed wlp3s0}${endif}${endif}
${if_up enp0s25}${if_match "${addr enp0s25}" != "No Address"}${voffset 12}${color #ffd700}lan: ${alignc}${addr enp0s25}
${color #006791}${downspeedgraph enp0s25 ffd700 B50404 -t}
${voffset -8}${color #006791}${upspeedgraph enp0s25 ffd700 B50404 -t}
${voffset -55}${offset 5}${color #ffd700}D: $color${downspeed enp0s25}
${voffset 18}${offset 5}${color #ffd700}U: $color${upspeed enp0s25}${endif}${endif}
${if_up tun0}${if_match "${addr tun0}" != "No Address"}${voffset 12}${color #ffd700}tun0: ${alignc}${addr tun0}
${color #006791}${downspeedgraph tun0 ffd700 B50404 -t}
${voffset -8}${color #006791}${upspeedgraph tun0 ffd700 B50404 -t}
${voffset -55}${offset 5}${color #ffd700}D: $color${downspeed tun0}
${voffset 18}${offset 5}${color #ffd700}U: $color${upspeed tun0}${endif}${endif}
${if_up tun1}${if_match "${addr tun1}" != "No Address"}${voffset 12}${color #ffd700}tun1: ${alignc}${addr tun1}
${color #006791}${downspeedgraph tun1 ffd700 B50404 -t}
${voffset -8}${color #006791}${upspeedgraph tun1 ffd700 B50404 -t}
${voffset -55}${offset 5}${color #ffd700}D: $color${downspeed tun1}
${voffset 18}${offset 5}${color #ffd700}U: $color${upspeed tun1}${endif}${endif}
${if_up ppp0}${if_match "${addr ppp0}" != "No Address"}${voffset 12}${color #ffd700}ppp0: ${alignc}${addr ppp0}
${color #006791}${downspeedgraph ppp0 ffd700 B50404 -t}
${voffset -8}${color #006791}${upspeedgraph ppp0 ffd700 B50404 -t}
${voffset -55}${offset 5}${color #ffd700}D: $color${downspeed ppp0}
${voffset 18}${offset 5}${color #ffd700}U: $color${upspeed ppp0}${endif}${endif}
]];
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/bin/env bash
#===============================================================================
#
# FILE: conky_fan.sh
#
# USAGE: ./conky_fan.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: neon
# CREATED: 07/05/16 01:25
# REVISION: ---
#===============================================================================
set -o nounset
RPM=`cat /proc/acpi/ibm/fan | grep speed: | awk '{print $2}'`
LEVEL=`cat /proc/acpi/ibm/fan | grep level: | awk '{print $2}'`
echo "${RPM} RPM (${LEVEL})"
|
x