Giter Site home page Giter Site logo

tmux-struggle-bus's Introduction

Tmux Struggle Bus

Who needs real-time CPU percentages and sparklines and animations? I sure don’t. Just tell me when my computer is on the struggle bus so I can go close some tabs. That’s what this tmux plugin does.

usage indicators

Usage

Add #{usage_cpu}, #{usage_disk}, and/or #{usage_mem} to your status-left or status-right:

set -g status-right '#{usage_cpu}%a %Y-%m-%d %H:%M'

When your computer reaches a threshold of usage, an indicator will appear. Otherwise, nothing is shown.

Currently, this plugin provides indicators for elevated CPU, disk usage, and memory usage. Memory usage is only implemented on Darwin (via sysctl).

Installation

  1. Install Tmux Plugin Manager.

  2. Add this plugin to your ~/.tmux.conf:

set -g @plugin 'chriszarate/tmux-struggle-bus'
  1. Press [prefix] + I to install.

Configuration

The following configuration variables can be set in your ~/.tmux.conf (shown here with their default values):

# Colors
set -g @usage_format_begin_warning '#[fg=black,bg=yellow]'
set -g @usage_format_begin_danger '#[fg=black,bg=red]'
set -g @usage_format_end '#[fg=white,bg=black]'

# Icons
set -g @usage_icon_cpu ' CPU '
set -g @usage_icon_disk ''
set -g @usage_icon_mem ' MEM '

# Thresholds
set -g @usage_threshold_cpu_danger '90'
set -g @usage_threshold_cpu_warning '80'
set -g @usage_threshold_disk_danger '95'
set -g @usage_threshold_disk_warning '90'
set -g @usage_threshold_mem_danger '50'
set -g @usage_threshold_mem_warning '30'

tmux-struggle-bus's People

Contributors

chriszarate avatar

Watchers

tenninjas 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.