]> git.friedersdorff.com Git - max/dotfiles.git/blob - sway/.conkyrc
Merge branch 'master' of git.friedersdorff.com:max/dotfiles
[max/dotfiles.git] / sway / .conkyrc
1 -- vim: ts=4 sw=4 noet ai cindent syntax=lua
2
3 conky.config = {
4         out_to_x = false,
5         own_window = false,
6         out_to_console = true,
7         short_units = true,
8         update_interval = 0.5,
9         background = false,
10         max_text_width = 0,
11         total_run_times = 0,
12         short_units = true,
13         if_up_strictness = 'address',
14         use_spacer = 'left',
15
16         cpu_avg_samples = 2,
17 };
18
19 conky.text = [[
20 [
21   ${if_running mutt} 
22     {"full_text": "${new_mails mail_aber/Inbox} new mails", "color": "\#ffa500"},
23   ${endif}
24   {"full_text": "Home ${fs_free /home} Free", "color": "\#ffffff"},
25   {"full_text": "Root ${fs_free /root} Free", "color": "\#ffffff"},
26   {"full_text": "Disk r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
27   {"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"},
28   {
29     "full_text": "d:${downspeed eno1} u:${upspeed eno1} ${addr eno1}", 
30         "color":
31           ${if_match "${addr eno1}"=="No Address"}
32             "\#ff0000"
33           ${else}
34                 "\#00ff00"
35           ${endif}
36   },
37   ${if_match "${addr tun0}"!="No Address"}
38         {"full_text": "VPN", "color": "\#00ff00"},
39   ${endif}
40   {
41         "full_text": "RAM ${memperc}%", 
42         "color": 
43           ${if_match ${memperc}<90}
44             "\#ffffff"
45           ${else}
46                 "\#ff0000"
47           ${endif} 
48   },
49   {"full_text": "${time}", "color": "\#ffffff"}
50 ],
51 ]];
52