Skip to main content

Simple cli tool for creating status text to something like dwm-bar.

Project description

usts

Simple cli tool for creating status text to something like dwm-bar.

Modules

Module Dependencies Description
str Display string.
time datetime Display current time with strftime formating.
cpu psutil Display percent of cpu usage.
ram psutil Display memory usage (percent, available, etc...)
disk os Display disk usage (free, available, total)

Installation

$ pip install usts

~/.config/usts/config.py example

# import make functions from mkmod.py file
from usts.mkmod import *

# setup list of items
items = [
    ModuleCPU(),
    # print example -> RAM: 10.1/16.0Gb
    ModuleRAM("RAM: {used}/{total}{data_format}", data_format="Gb"),
    # print example -> /: 121.3Gb
    ModuleDisk("{path}: {free}{data_format}"),  
    ModuleTime(),
    ModuleStr("☭")
]

# Execute is action with status
#   setxroot -> setxroot -name "status"
#   stdout   -> just print status in terminal
execute = "stdout"

Usage

$ usts

Contacts

Contact Description
Matrix Matrix server.
Discord Discord server.

Donates

Monero: 47KkgEb3agJJjSpeW1LpVi1M8fsCfREhnBCb1yib5KQgCxwb6j47XBQAamueByrLUceRinJqveZ82UCbrGqrsY9oNuZ97xN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

usts-0.1.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file usts-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: usts-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for usts-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5198180ad48995c7d9dfcb94baef8f7f8d399ecff9530a822e1e5e367283783
MD5 ff8b96745810f59b22e8522e5fd2bf25
BLAKE2b-256 6fc5e05acdd43ac3a9e50c6f9fe01755758f3aa85821a0055f4ebe550243d0e4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page