summaryrefslogtreecommitdiff
path: root/conky.org
blob: 9eab26676778f7ebef04cd2c6e292c5f096a26b5 (plain)
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
# -*- mode: org; -*-

#+TITLE: =Conky= configuration file
#+AUTHOR: Marius Peter
#+DATE: <2022-11-01 Tue>

#+PROPERTY: header-args  :tangle "~/.config/conky/conky.conf"


* Configuration

#+begin_src lua
  conky.config = {
     alignment = 'top_left',
     background = false,
     border_width = 1,
     cpu_avg_samples = 2,
     default_color = 'white',
     default_outline_color = 'white',
     default_shade_color = 'white',
     double_buffer = true,
     draw_borders = false,
     draw_graph_borders = true,
     draw_outline = false,
     draw_shades = false,
     extra_newline = false,
     font = 'Hack:size=16',
     gap_x = 60,
     gap_y = 60,
     minimum_height = 5,
     minimum_width = 5,
     net_avg_samples = 2,
     no_buffers = true,
     out_to_console = false,
     out_to_ncurses = false,
     out_to_stderr = false,
     out_to_x = true,
     own_window = true,
     own_window_class = 'Conky',
     own_window_type = 'desktop',
     own_window_transparent = true,
     own_window_argb_visual = true,
     show_graph_range = false,
     show_graph_scale = false,
     stippled_borders = 0,
     update_interval = 1.0,
     uppercase = false,
     use_spacer = 'none',
     use_xft = true,
  }
#+end_src


* Conky content

#+begin_src lua :noweb yes
  conky.text = [[
  <<content>>
  ]]
#+end_src

#+NAME: content
#+begin_src lua :tangle no :exports none
  ${font Monoid:size=40}${time %H:%M}
  $font${color grey}$color ${scroll 38 Conky $conky_version - $sysname $nodename $kernel $machine}
  $hr
  ${color grey}Uptime:$color $uptime
  ${color grey}Frequency (in MHz):$color $freq
  ${color grey}Frequency (in GHz):$color $freq_g
  ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
  ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
  ${color grey}CPU Usage:$color $cpu% ${cpubar 4}
  ${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
  $hr
  ${color grey}File systems:
  / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
  ${color grey}Networking:
  Up:$color ${upspeed} ${color grey} - Down:$color ${downspeed}
  $hr
  ${color grey}Name                PID     CPU%   MEM%
  ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
  ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
  ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
  ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
#+end_src
Copyright 2019--2024 Marius PETER