Coder Social home page Coder Social logo

mastodon's Introduction

Mastodon

Status bar replacement for i3status. Works with i3bar.

The goals of this project are:

  • More configurable than i3status.
  • Use colors from Xresources by default.
  • Learn golang.

Config

Default config

bar_size:          10,
color_bad:         #d00000,
color_good:        #00d000,
color_normal:      #cccccc,
date_format:       2006-01-02 15:04:05,
format_battery:    {{if .battery}}{{.prefix}} {{.bar}} ({{.remaining}} {{.wattage}}W){{else}}No battery{{end}},
format_clock:      {{.time}},
format_cpu:        C {{.bar}},
format_disk:       D {{.bar}},
format_hostname:   {{.hostname}},
format_ip:         {{.ip}},
format_loadavg:    {{.fifteen}} {{.five}} {{.one}},
format_memory:     R {{.bar}},
format_uptime:     {{.uptime}},
format_weather:    {{if .error}}{{.error}}{{ else }}{{.today}} {{.high}}/{{.low}} ({{.next}}){{ end }},
interval:          1,
network_interface: wlan0,
order:             weather,cpu,memory,disk,battery,ip,loadavg,clock,
bar_start:         [,
bar_end:           ],
bar_empty:          ,
bar_full:          #,

You can save a mastodon.conf file in .config/ confaining your custom config options, like:

format_disk=  {{.bar}}

Borders

Following the following syntax:

border_<module>: <top> <right> <bottom> <left> <color>

Where module is the name of the module used in order, and top, right bottom and left are the width of the line (default to 0). Color is obviously the color.

Example:

border_cpu=0 0 2 0 #ffffff
border_memory=0 0 2 0 #00ff00

How does it look?

The above screenshot shows some of the default modules:

  • Weather
  • CPU
  • Memory usage
  • HDD usage
  • Battery remaining
  • IP address
  • Load average
  • Clock

Example Config

The above screenshot shows another example, using the config options below:

order=cpu,memory,disk,ip,loadavg,uptime,clock

# Formats
format_cpu=  {{.bar}}
format_memory=  {{.bar}}
format_disk=  {{.bar}}
format_ip=  {{.ip}}
format_loadavg=  {{.one}} {{.five}} {{.fifteen}}
format_uptime=  {{.uptime}}
format_clock=  {{.time}}

# Borders
border_cpu=0 0 2 0 #ffffff
border_memory=0 0 2 0 #00ff00
border_disk=0 0 2 0 #ffff00
border_ip=0 0 2 0 #00ffff
border_uptime=0 0 2 0 #ffffff
border_loadavg=0 0 2 0 #ff0000
border_clock=0 0 2 0 #909090

bar_empty=□
bar_full=■
bar_start=
bar_end=

onclick_cpu=gnome-system-monitor -p
onclick_memory=gnome-system-monitor -r
onclick_disk=gnome-system-monitor -f

interval=2

mastodon's People

Contributors

coleifer avatar damog avatar nananas avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.