However Archbang has taken this script and renamed it archbey, adding a 'b' for 'bang', I think. archbey is a python2 script located in /usr/bin that creates the following banner every time a terminal window is opened:

.

#. OS: Archbang x86_64

/;# Hostname: arch

#;## Kernel: 3.17.4-1-ARCH

/###' Uptime: 0:32

;#\ #; Window Manager: Openbox

+### .## Packages: 1269

+#### ;### RAM: -2523 MB / 3947 MB

###### #####; CPU: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz

####### ###### Shell: Bash

######## ######## Root FS: 9.2G / 24G (ext4)

.########;;########\

.########; ;#######

#########. .########`

######' '######

;#### ####;

##' '##

#' `#

As you can see, however, the 'RAM' value listed above is incorrect. Let's take a look at the output of free -m (memory stats in MB):

[archjun@arch ~]$ free -m

total used free shared buff/cache available

Mem: 3947 1081 1721 155 1145 2467

Swap: 999 0 999

We are using a 1081 MB of RAM, but the archbey script is giving is a negative value which is definitely wrong.

Let's take a look at the python2 script /usr/bin/archbey to see how it is calculating RAM usage:

I have fixed the archbey banner by editing lines 112 and 113 in /usr/bin/archbey as follows:

used = int(ram[2])

output ('RAM Used', '%s MB / %s MB' % (used, ram[1]))

Now the terminal banner properly lists RAM usage (of course, archbey or archey3 must be included in your ~/.bashrc file):

.

#. OS: Archbang x86_64

/;# Hostname: arch

#;## Kernel: 3.17.4-1-ARCH

/###' Uptime: 0:37

;#\ #; Window Manager: Openbox

+### .## Packages: 1269

+#### ;### RAM Used: 1114 MB / 3947 MB

###### #####; CPU: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz

####### ###### Shell: Bash

######## ######## Root FS: 9.2G / 24G (ext4)

.########;;########\

.########; ;#######

#########. .########`

######' '######

;#### ####;

##' '##

#' `#

This script could use some loving; for one thing, all the indentation is non-kosher by Python standards -- default indentation should be 4 spaces, but this script uses just a single space throughout. By contrast, archey on github is properly indented with 4 spaces as default for code inside functions and classes.

The archbey script was based off of archey 0.1-11 but today archey(3) is at version 0.5-3. Unfortunately, no package owns archbey:

[archjun@arch ~]$ sudo pacman -Qo archbey

[sudo] password for archjun:

error: No package owns /usr/bin/archbey

It is a script that was added on top of the base Archlinux install by the Archbang installer, so it is not updated by pacman -Syyu like archey would be.

I could always just get rid of archbey and install archey3 instead for creating a pretty Archlinux terminal banner.