Custom Lemonbar...

If you are looking for a specific 64-bit package and you can't find it in any of the 64-bit repos, please post a request for it here
Post Reply
User avatar
Posts: 567
Joined: 21 Apr 2017, 15:59
Distribution: fullmoonremix

Custom Lemonbar...

Post#1 by n0ctilucient » 10 Jul 2018, 04:20

...aims to help users build beautiful and highly customizable status bars for their desktop environment, without the need of having a black belt in shell scripting.
Basically... it's a "fast and easy-to-use tool for generating status bars" for lemonbar.

This is my /usr/bin/ (executable) script...

Code: Select all

# see...
# see...
# see...
# see...

# Define the status

Calendar() {
        DATETIME=$(date "+%D")

        echo -n "$DATETIME"

Load() {
        TOP=$(top -b -n2 -p 1 | fgrep "Cpu(s)" | tail -1 | awk -F'id,' -v prefix="$prefix" '{ split($1, vs, ","); v=vs[length(vs)]; sub("%", "", v); printf "cpu: %s%.1f%%\n", prefix, 100 - v }')

        echo -n "$TOP"

Memory() {
        FREE=$(free | awk '/Mem/{printf("mem: %.2f%"), $3/$2*100}')

        echo -n "$FREE"

Clock() {
        DATETIME=$(date "+%I:%M %p")

        echo -n "$DATETIME"

# Print the status

while true; do
        echo "%{l} $(Calendar) %{c} $(Load) $(Memory) %{r} $(Clock)"
        sleep 1
done places the date on the left... the time on the right
and the processor and memory usage in the center
using a white foreground on a translucent background.

Pls Note: I use PekWM. So in order to activate lemonbar... I use a line
in /etc/pekwm/start (executable) which points to /usr/bin/
(executable) which points to (executable)

Site is @...

Source is @...

This package has not been adopted yet by ("slackonly" or)...

So far... I have not been able to successfully compile this package with the following src2pkg.conf @...
Everything you wanted to know about "hardened" compile flags and src2pkg.conf (...but were afraid to ask)

Thanx... in advance to anyone that IS interested in sharing their precompiled package link.
:hmmm: I do NOT have the "right" to tell anyone what they should do...
but I reserve the "right" to tell them what they should "consider".

Post Reply