-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.conkyrc
119 lines (101 loc) · 4.56 KB
/
.conkyrc
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
-- vim: ts=4 sw=4 noet ai cindent syntax=lua filetype=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/>.
]]
conky.config = {
alignment = 'middle_right',
background = false,
border_inner_margin = 0,
border_width = 1,
cpu_avg_samples = 2,
default_bar_height = 3,
default_bar_width = 56,
default_color = '#899CFF',
default_gauge_height = 56,
default_gauge_width = 56,
default_graph_height = 32,
default_graph_width = 230,
default_outline_color = '#899CFF',
default_shade_color = 'black',
double_buffer = true,
draw_borders = true,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'Noto Sans Mono CJK JP:size=9',
format_human_readable = true,
gap_x = 3,
gap_y = 1,
lua_load = "~/.conky/conky_scripts.lua",
maximum_height = 707,
maximum_width = 244,
minimum_height = 707,
minimum_width = 244,
net_avg_samples = 2,
no_buffers = false,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_colour = '#252E32',
own_window_type = 'panel',
own_window_transparent = false,
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
own_window_argb_visual = true,
own_window_argb_value = 192,
short_units = true,
show_graph_scale = false,
show_graph_range = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none'
}
conky.text = [[
${uid_name 1000}@$nodename_short (${execi 3600 ip route get 8.8.8.8 | awk '{print $NF; exit}'})
${execi 3600 /usr/bin/lsb_release -d | /bin/sed 's/^.*:\s*//'} ($machine)
${color white}Logged In$color ${execi 60 who | awk '{print $1}' | sort -u | tr '\n' ',' | sed -e 's/,$//' -e 's/,/, /g'}
$hr
${alignc}${execi 10 nowplaying}
${image /tmp/.nowplaying-art.jpg -p 32,102 -n}
$hr
${color white}RAM$color ${membar} $mem / $memmax ($memperc%)
${color white}Swap$color ${swapbar} $swap / $swapmax ($swapperc%)
${color white}Disk$color ${fs_bar /} ${fs_used /} / ${fs_size /} ($fs_used_perc%)
${color white}Write$color ${lua_parse pad 7 ${diskio_write}} ${color white}Read$color ${lua_parse pad 6 ${diskio_read}}
${color white}Net Up$color ${lua_parse pad 6 ${exec ~/.conky/nettxkb}}K ${color white}Net Down$color ${lua_parse pad 5 ${exec ~/.conky/netrxkb}}K
$hr
${color white}${loadgraph 32,230 899CFF FF899C scale -t}
${color white}LOAD$color ${alignr 6}$loadavg
$hr
${color white}CPU HOGS ${alignr 6}Load
${color lightgrey}${execi 5 ~/.conky/cpuhogs | sed -n '1p' | cut -d':' -f1} $color ${alignr 6}${execi 5 ~/.conky/cpuhogs | sed -n '1p' | cut -d':' -f2}%
${color lightgrey}${execi 5 ~/.conky/cpuhogs | sed -n '2p' | cut -d':' -f1} $color ${alignr 6}${execi 5 ~/.conky/cpuhogs | sed -n '2p' | cut -d':' -f2}%
${color lightgrey}${execi 5 ~/.conky/cpuhogs | sed -n '3p' | cut -d':' -f1} $color ${alignr 6}${execi 5 ~/.conky/cpuhogs | sed -n '3p' | cut -d':' -f2}%
$hr
${color white}MEM HOGS ${alignr 6}Size
${color lightgrey}${execi 5 ~/.conky/vmhogs | sed -n '1p' | cut -d':' -f1} $color ${alignr 6}${execi 5 ~/.conky/vmhogs | sed -n '1p' | cut -d':' -f2}G
${color lightgrey}${execi 5 ~/.conky/vmhogs | sed -n '2p' | cut -d':' -f1} $color ${alignr 6}${execi 5 ~/.conky/vmhogs | sed -n '2p' | cut -d':' -f2}G
${color lightgrey}${execi 5 ~/.conky/vmhogs | sed -n '3p' | cut -d':' -f1} $color ${alignr 6}${execi 5 ~/.conky/vmhogs | sed -n '3p' | cut -d':' -f2}G
$hr
${execi 1800 ~/.tmux/status-weather.sh} ${alignr 6}${exec date | sed 's/\(:[0-9][0-9]\) [A-Za-z].*$/\1/g'}
]]