-
Notifications
You must be signed in to change notification settings - Fork 6
/
conky-i3statusbar
135 lines (130 loc) · 3.84 KB
/
conky-i3statusbar
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
--[[
#=====================================================================================
# i3 on linux mint 18 cinnamon
# Date : 22/01/2017
# Author : Erik Dubois at http://www.erikdubois.be
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation English: http://erikdubois.be/category/linux/i3/
#======================================================================================
#======================================================================================
#
# Source : c
# alternative : sudo apt list --upgradable | wc -l
#======================================================================================
]]
conky.config = {
out_to_x = false,
own_window = false,
out_to_console = true,
background = false,
max_text_width = 0,
update_interval = 1.0,
total_run_times = 0,
short_units = true,
if_up_strictness = "address",
use_spacer = "left",
override_utf8_locale = false,
cpu_avg_samples = 2
}
conky.text = [[
[
{
"full_text": " ${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}} $kernel ",
"color": "\#fdf6e3",
"background": "\#dc322f",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " | ",
"color": "\#dc322f",
"background": "\#2F2F2F",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " ${cpu cpu0}%, ${execi 5 sensors|grep 'Core 0'|awk '{print $3}'} ",
"color": "\#fdf6e3",
"background": "\#dc322f",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " | ",
"color": "\#e69722",
"background": "\#2F2F2F",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " ${mem}/${memmax} (${memperc}%) ",
"color": "\#fdf6e3",
"background": "\#e69722",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " | ",
"color": "\#2aa198",
"background": "\#2F2F2F",
"separator": true,
"separator_block_width": 0
},
{
#linux mint
"full_text": " ${texeci 1800 sleep 5; aptitude search '~U' | wc -l} updates ",
#arch
#"full_text": " ${texeci 1800 sleep 5; checkupdates | wc -l}+${texeci 1800 sleep 5; packer --quickcheck | wc -l} updates",
"color": "\#fdf6e3",
"background": "\#2aa198",
"separator": true,
"separator_block_width": 0
},
{
#check name of ethernet/wireless with ip addr or ifconfig
"full_text": " up: ${upspeed enp2s0} down: ${downspeed enp2s0} ",
"color": "\#fdf6e3",
"background": "\#2aa198",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " | ",
"color": "\#859900",
"background": "\#2F2F2F",
"separator": true,
"separator_block_width": 0
},
{
#linux mint
"full_text": " ${exec amixer get Master | grep % | awk '{print $4}' | sed 's/[^0-9\%]//g' | head -n1} ",
#arch linux
#"full_text": " ${exec amixer get Master | grep % | awk '{print $5}' | sed 's/[^0-9\%]//g' | head -n1} ",
"color": "\#fdf6e3",
"background": "\#859900",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " | ",
"color": "\#6c71c4",
"background": "\#2F2F2F",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " ${time %a, %d/%m/%y} ",
"color": "\#fdf6e3",
"background": "\#6c71c4",
"separator": true,
"separator_block_width": 0
},
{
"full_text": " ${time %H:%M:%S} ",
"color": "\#fdf6e3",
"background": "\#6c71c4",
"separator": true,
"separator_block_width": 0
}
],
]]