diff --git a/conf.blkid b/conf.blkid new file mode 100644 index 0000000..bb7d540 --- /dev/null +++ b/conf.blkid @@ -0,0 +1,23 @@ +# Blk +regexp=^(.+):\s +colours=bright_green +====== +# Blk mapper +regexp=^(/dev/mapper/)(.+):\s +colours=default,green,bright_green +====== +# UUID +regexp=\sUUID="([^"]+) +colours=default,blue +====== +# TYPE +regexp=TYPE="([^"]+) +colours=default,cyan +====== +# LABEL +regexp=LABEL="([^"]+) +colours=default,bright_cyan +====== +# PARTUUID +regexp=PARTUUID="([^"]+) +colours=default,magenta diff --git a/conf.du b/conf.du new file mode 100644 index 0000000..05f00fb --- /dev/null +++ b/conf.du @@ -0,0 +1,27 @@ +# Cannot read +regexp=.*cannot read directory.*(Permission denied)$ +colours=red,bold red +====== +# Path +regexp=\.\/([-\w\d\.\+\s]+)(\/[-\w\d\.\/]+)* +colours=default,bold blue,blue +====== +# Size 'K' +regexp=\d*[.,]?\dKi?\s +colours=green +====== +# Size 'M' +regexp=\d*[.,]?\dMi?\s +colours=yellow +====== +# Size 'G' +regexp=\d*[.,]?\dGi?\s +colours=red +====== +# Size 'T' +regexp=\d*[.,]?\dTi?\s +colours=bold red +====== +# Total +regexp=(.*)\s+(total)$ +colours=bold yellow on_blue diff --git a/conf.env b/conf.env new file mode 100644 index 0000000..d1a6618 --- /dev/null +++ b/conf.env @@ -0,0 +1,3 @@ +# Main +regexp=^([^=]+)(=)(.*)$ +colours=default,cyan,white,yellow diff --git a/conf.free b/conf.free new file mode 100644 index 0000000..75732bb --- /dev/null +++ b/conf.free @@ -0,0 +1,27 @@ +# Size 'K' +regexp=\s\d*[.,]?\dKi? +colours=green +====== +# Size 'M' +regexp=\s\d*[.,]?\dMi? +colours=yellow +====== +# Size 'G' +regexp=\s\d*[.,]?\dGi? +colours=red +====== +# Size 'T' +regexp=\s\d*[.,]?\dTi? +colours=bold red +====== +# Mem +regexp=^Mem +colours=bold cyan +====== +# Swap +regexp=^Swap +colours=bold magenta +====== +# Zero +regexp=\s+0\w?(\s|$) +colours=green diff --git a/conf.lsblk b/conf.lsblk new file mode 100644 index 0000000..81bc440 --- /dev/null +++ b/conf.lsblk @@ -0,0 +1,47 @@ +# Main HD +regexp=^[a-z]+\d?\s +colours=bold white +====== +# Partition +regexp=([├└─│]+)(\S+) +colours=bright_green +====== +# Partition - LVM +regexp=\s+([├└─│]+)(\S+) +colours=default,default,bright_cyan +====== +# Type disk +regexp=\sdisk\s +colours=magenta +====== +# Type lvm +regexp=\slvm\s +colours=bold cyan +====== +# Type part +regexp=\spart\s +colours=cyan +====== +# Type loop +regexp=\sloop\s +colours=bright_red +====== +# Size 'K' +regexp=\s\d*[.,]?\dKi?\s +colours=green +====== +# Size 'M' +regexp=\s\d*[.,]?\dMi?\s +colours=yellow +====== +# Size 'G' +regexp=\s\d*[.,]?\dGi?\s +colours=red +====== +# Size 'T' +regexp=\s\d*[.,]?\dTi?\s +colours=bold red +====== +# Mount +regexp=\s\/.*$ +colours=bold yellow diff --git a/conf.lspci b/conf.lspci new file mode 100644 index 0000000..721a109 --- /dev/null +++ b/conf.lspci @@ -0,0 +1,19 @@ +# Address +regexp=^(..):(..).(.) +colours=default,bright_green,bright_yellow,red +- +# Ethernet +regexp=(Ethernet controller|Network controller) +colours=cyan +- +# Wireless +regexp=Wireless +colours=bright_cyan +- +# SATA +regexp=SATA controller +colours=green +- +# Audio +regexp=Audio device +colours=blue diff --git a/grc.conf b/grc.conf index 4f63e73..819f17a 100644 --- a/grc.conf +++ b/grc.conf @@ -82,6 +82,10 @@ conf.mount (^|[/\w\.]+/)df\s? conf.df +# du +(^|[/\w\.]+/)du\s? +conf.du + # ip addr/link (^|[/\w\.]+/)ip a(ddr)*\s? conf.ipaddr @@ -96,9 +100,26 @@ conf.iproute # ip neighbor (^|[/\w\.]+/)ip n(eighbor)*\s? conf.ipneighbor +# env +(^|[/\w\.]+/)env\s? +conf.env # iptables (^|[/\w\.]+/)iptables\s? conf.iptables +# lspci +(^|[/\w\.]+/)lspci\s? +conf.lspci + +# lsblk +(^|[/\w\.]+/)lsblk\s? +conf.lsblk + +# blkid +(^|[/\w\.]+/)blkid\s? +conf.blkid +# free +(^|[/\w\.]+/)free\s? +conf.free # docker ----------------------------- (^|[/\w\.]+/)docker ps\s? conf.dockerps