images/examples_smallblue.png

images/examples_xshape.png

There are also some configuration files in the xsysguard source package for testing (installed into $prefix/share/xsysguard/configs/test).

smallblue

images/examples_smallblue.png

clock

Set Name CLOCK
Set Size 64 54
Set Layer Above
Set Background Color black
Set Decorations off
Set Mouse 1 Move

Rectangle 2 2 60 50 #484848 ColorRange 0 1 50 #161616

Text 1 5 2 56 18 #b0b0b0 Arial_Bold/12 "%02d:%02d"
+ time:local:tm_hour
+ time:local:tm_min

Text 1 49 7 12 13 #b0b0b0 Arial_Bold/8 "%02d"
+ time:local:tm_sec

Text 1 2 24 60 22 #a0a0a0 Arial_Bold/8 "%s\n%s" Alignment Center
+ time:local:strftime:"%a"
+ time:local:strftime:"%F"

cpu

Set Name CPU
Set Size 64 54
Set Layer Above
Set Background Color black
Set Decorations off
Set Mouse 1 Move

Rectangle 2 2 60 50 #484848 ColorRange 0 1 50 #161616

AreaChart 1 2 2 60 50 Min 0 Max 1
+ statgrab:cpu_stats_diff:user,statgrab:cpu_stats_diff:total,DIV #538cf5
+ statgrab:cpu_stats_diff:nice,statgrab:cpu_stats_diff:total,DIV #266df3 AddPrev
+ statgrab:cpu_stats_diff:kernel,statgrab:cpu_stats_diff:total,DIV #0d55db AddPrev
+ statgrab:cpu_stats_diff:iowait,statgrab:cpu_stats_diff:total,DIV #0a43ae AddPrev
+ statgrab:cpu_stats_diff:swap,statgrab:cpu_stats_diff:total,DIV #073180 AddPrev

Text 0 3 2 58 14 #b0b0b0 Arial_Bold/8 "CPU"

Text 1 3 2 58 14 #b0b0b0 Arial_Bold/8 "%d %%" Alignment TopRight
+ 1,statgrab:cpu_stats_diff:idle,statgrab:cpu_stats_diff:total,DIV,SUB,100,MUL

load

Set Name LOAD
Set Size 64 54
Set Layer Above
Set Background Color black
Set Decorations off
Set Mouse 1 Move

Rectangle 2 2 60 50 #484848 ColorRange 0 1 50 #161616

LineChart 5 2 14 60 36
+ statgrab:load_stats:min15 #0d55db
+ statgrab:load_stats:min5 #266df3
+ statgrab:load_stats:min1 #538cf5

Text 0 3 2 58 14 #b0b0b0 Arial_Bold/8 "LOAD"

Text 5 3 2 58 14 #b0b0b0 Arial_Bold/8 "%.2f" Alignment TopRight
+ statgrab:load_stats:min1

mem

Set Name MEM
Set Size 64 54
Set Layer Above
Set Background Color black
Set Decorations off
Set Mouse 1 Move

Rectangle 2 2 60 50 #484848 ColorRange 0 1 50 #161616

Text 0 3 2 58 12 #b0b0b0 Arial_Bold/8 "MEM"

Text 2 3 2 58 12 #b0b0b0 Arial_Bold/8 "%d %%" Alignment TopRight
+ statgrab:mem_stats:used,statgrab:mem_stats:total,DIV,100,MUL

BarChart 4 3 16 58 10 Min 0 Angle 90
+ statgrab:mem_stats:used,statgrab:mem_stats:cache,SUB #538cf5
+ statgrab:mem_stats:cache #0d55db AddPrev
+ statgrab:mem_stats:free #073180 AddPrev

Text 2 3 16 58 10 #ccc Arial_Bold/7 "%d/%d" Alignment Center
+ statgrab:mem_stats:used,1048576,DIV
+ statgrab:mem_stats:total,1048576,DIV

Rectangle 3 16 58 10 #fff2 ColorRange 0 3 5 #ddd2 1 #2222 5 #0002

Text 0 3 27 58 12 #b0b0b0 Arial_Bold/8 "SWAP"

Text 2 3 27 58 12 #b0b0b0 Arial_Bold/8 "%d %%" Alignment TopRight
+ statgrab:swap_stats:used,statgrab:swap_stats:total,DIV,100,MUL

BarChart 4 3 41 58 10 Min 0 Angle 90
+ statgrab:swap_stats:used #0d55db
+ statgrab:swap_stats:free #073180 AddPrev

Text 2 3 41 58 10 #ccc Arial_Bold/7 "%d/%d" Alignment Center
+ statgrab:swap_stats:used,1048576,DIV
+ statgrab:swap_stats:total,1048576,DIV

Rectangle 3 41 58 10 #fff2 ColorRange 0 3 5 #ddd2 1 #2222 5 #0002

net

Set Name NET
Set Size 64 54
Set Layer Above
Set Background Color black
Set Decorations off
Set Mouse 1 Move

ModuleEnv statgrab
SetEnv INTERFACE ${STATGRAB_INTERFACE0}

Rectangle 2 2 60 50 #484848 ColorRange 0 1 50 #161616

LineChart 1 2 14 60 36 Min 0
+ statgrab:network_io_stats_diff:${INTERFACE}:tx #266df3
+ statgrab:network_io_stats_diff:${INTERFACE}:rx #538cf5

Text 0 3 2 58 14 #266df3 Arial_Bold/8 TX

Text 0 3 2 58 14 #538cf3 Arial_Bold/8 RX Alignment TopRight

Text 0 3 2 58 14 #b0b0b0 Arial_Bold/7 ${INTERFACE} Alignment Center

Text 1 3 16 58 12 #b0b0b0 Arial_Bold/7 "%d"
+ statgrab:network_io_stats_diff:${INTERFACE}:tx,1024,DIV

Text 1 3 16 58 12 #b0b0b0 Arial_Bold/7 "%d" Alignment TopRight
+ statgrab:network_io_stats_diff:${INTERFACE}:rx,1024,DIV

xshape

images/examples_xshape.png

cpu

Set Background Color #080808
Set Decorations off
Set Layer Above
Set Sticky on
Set Size 60 16

SetEnv CPU 0
SetEnv CPULINE 0

Line 0 0 59 0 #222
Line 0 15 59 15 #222
Line 0 1 0 14 #222
Line 59 1 59 14 #222

SetEnv us "cpu${CPU} %d" Overwrite
SetEnv ni "cpu${CPU} %*d %d" Overwrite
SetEnv sy "cpu${CPU} %*d %*d %d" Overwrite
SetEnv id "cpu${CPU} %*d %*d %*d %d" Overwrite
SetEnv io "cpu${CPU} %*d %*d %*d %*d %d" Overwrite
SetEnv ir "cpu${CPU} %*d %*d %*d %*d %*d %d" Overwrite
SetEnv so "cpu${CPU} %*d %*d %*d %*d %*d %*d %d" Overwrite

AreaChart 1 1 1 58 14 Min 0 Max 1
+ file:/proc/stat:readline:${CPULINE}:scanf:c:${us}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${us}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ni},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${sy},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${id},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${io},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ir},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${so},ADD,DIV #00f
+ file:/proc/stat:readline:${CPULINE}:scanf:c:${ni}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${us}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ni},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${sy},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${id},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${io},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ir},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${so},ADD,DIV #00e AddPrev
+ file:/proc/stat:readline:${CPULINE}:scanf:c:${sy}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${us}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ni},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${sy},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${id},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${io},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ir},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${so},ADD,DIV #00d AddPrev
+ file:/proc/stat:readline:${CPULINE}:scanf:c:${io}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${us}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ni},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${sy},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${id},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${io},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ir},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${so},ADD,DIV #00c AddPrev
+ file:/proc/stat:readline:${CPULINE}:scanf:c:${ir}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${us}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ni},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${sy},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${id},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${io},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ir},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${so},ADD,DIV #00b AddPrev
+ file:/proc/stat:readline:${CPULINE}:scanf:c:${so}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${us}, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ni},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${sy},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${id},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${io},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${ir},ADD, \
  file:/proc/stat:readline:${CPULINE}:scanf:c:${so},ADD,DIV #00a AddPrev

cpud

Set Background Color #080808
Set Decorations off
Set Layer Above
Set Sticky on
Set Size 60 16

SetEnv CPU 0
SetEnv CPULINE 0
SetEnv DAEMON "xsysguardd"

Line 0 0 59 0 #222
Line 0 15 59 15 #222
Line 0 1 0 14 #222
Line 59 1 59 14 #222

SetEnv us "file:/proc/stat:readline:${CPULINE}:scanf:c:\"cpu${CPU} %d\"" Overwrite
SetEnv ni "file:/proc/stat:readline:${CPULINE}:scanf:c:\"cpu${CPU} %*d %d\"" Overwrite
SetEnv sy "file:/proc/stat:readline:${CPULINE}:scanf:c:\"cpu${CPU} %*d %*d %d\"" Overwrite
SetEnv id "file:/proc/stat:readline:${CPULINE}:scanf:c:\"cpu${CPU} %*d %*d %*d %d\"" Overwrite
SetEnv io "file:/proc/stat:readline:${CPULINE}:scanf:c:\"cpu${CPU} %*d %*d %*d %*d %d\"" Overwrite
SetEnv ir "file:/proc/stat:readline:${CPULINE}:scanf:c:\"cpu${CPU} %*d %*d %*d %*d %*d %d\"" Overwrite
SetEnv so "file:/proc/stat:readline:${CPULINE}:scanf:c:\"cpu${CPU} %*d %*d %*d %*d %*d %*d %d\"" Overwrite

SetEnv sum "${us},${ni},ADD,${sy},ADD,${id},ADD,${io},ISNANZERO,ADD,${ir},ISNANZERO,ADD,${so}, ISNANZERO,ADD" Overwrite

AreaChart 1 1 1 58 14 Min 0 Max 1
+ daemon:${DAEMON}:n:"${us},${sum},DIV" #00f
+ daemon:${DAEMON}:n:"${ni},${sum},DIV" #00e AddPrev
+ daemon:${DAEMON}:n:"${sy},${sum},DIV" #00d AddPrev
+ daemon:${DAEMON}:n:"${io},${sum},DIV" #00c AddPrev
+ daemon:${DAEMON}:n:"${ir},${sum},DIV" #00b AddPrev
+ daemon:${DAEMON}:n:"${so},${sum},DIV" #00a AddPrev

date

Set Background Color #000000fe
Set Decorations off
Set Layer Above
Set Sticky on
Set XShape 255
Set Size 120 12

SetEnv font VeraBd/8 Overwrite

Text 1 0 0 120 12 white ${font} "%s"
+ time:local:strftime:"%a  %d %b %Y"

time

Set Background Color #000000fe
Set Decorations off
Set Layer Above
Set Sticky on
Set XShape 255
Set Size 60 12

SetEnv font VeraBd/8 Overwrite

Text 1 0 0 60 12 white ${font} "%s"
+ time:local:strftime:"%H:%M:%S"

load

Set Background Color #000000fe
Set Decorations off
Set Layer Above
Set Sticky on
Set XShape 255
Set Size 40 12

SetEnv font VeraBd/8 Overwrite

Text 1 0 0 40 12 white ${font} "%.2f" Alignment TopRight
+ statgrab:load_stats:min1

net

Set Background Color #080808
Set Decorations off
Set Layer Above
Set Sticky on
Set Size 60 16

ModuleEnv statgrab
SetEnv INTERFACE ${STATGRAB_INTERFACE0}

Line 0 0 59 0 #222
Line 0 15 59 15 #222
Line 0 1 0 14 #222
Line 59 1 59 14 #222

LineChart 1 1 1 58 14
+ statgrab:network_io_stats_diff:${INTERFACE}:rx #00f
+ statgrab:network_io_stats_diff:${INTERFACE}:tx #00b