Giter Club home page Giter Club logo

Comments (6)

ctjhoa avatar ctjhoa commented on May 31, 2024

Can you share your .tmux.conf please?

from tmux-cpu.

hannadrehman avatar hannadrehman commented on May 31, 2024

i now use gruvbox theme. but the issue is same, it stopped showing in the statusbar

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'

set -g history-limit 5000                 # boost history

set -g monitor-activity on
set -g visual-activity off
set -g status-bg "#40514e"
set -g status-fg "white"
set -g default-terminal "screen-256color"
set-option -s escape-time 10

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'egel/tmux-gruvbox'
set -g @plugin 'dracula/tmux'

set -g -q mouse on

run -b '~/.tmux/plugins/tpm/tpm'

from tmux-cpu.

ctjhoa avatar ctjhoa commented on May 31, 2024

@hannadrehman I do not see tmux-cpu plugin in your config

from tmux-cpu.

ctjhoa avatar ctjhoa commented on May 31, 2024

Adding this line

diff --git a/home/ctjhoa/.tmux.conf.bad b/home/ctjhoa/.tmux.conf
index 122b7e016a..0426d54394 100644
--- a/home/ctjhoa/.tmux.conf.bad
+++ b/home/ctjhoa/.tmux.conf
@@ -17,6 +17,7 @@ set -g @plugin 'tmux-plugins/tpm'
 set -g @plugin 'nhdaly/tmux-better-mouse-mode'
 set -g @plugin 'egel/tmux-gruvbox'
 set -g @plugin 'dracula/tmux'
+set -g @plugin 'tmux-plugins/tmux-cpu'

 set -g -q mouse on

Edit: Remove wrong screenshot

from tmux-cpu.

ctjhoa avatar ctjhoa commented on May 31, 2024

Ok so I want to clarify some things here.
dracula/tmux doesn't rely on tmux-cpu to display CPU usage.
Adding this line to your config works like a charm

diff --git a/.tmux.conf.bad b/.tmux.conf
index 122b7e0..e4bb790 100644
--- a/.tmux.conf.bad
+++ b/.tmux.conf
@@ -19,5 +19,6 @@ set -g @plugin 'egel/tmux-gruvbox'
 set -g @plugin 'dracula/tmux'

 set -g -q mouse on
+set -g @dracula-cpu-usage true

 run -b '~/.tmux/plugins/tpm/tpm'

2020-06-29-124553_1870x798_scrot

from tmux-cpu.

ctjhoa avatar ctjhoa commented on May 31, 2024

If you want to use egel/tmux-gruvbox instead, you need to install both egel/tmux-gruvbox & tmux-plugins/tmux-cpu then override gruvbox default status (https://github.com/egel/tmux-gruvbox/blob/master/tmux-gruvbox-dark.conf#L45).

from tmux-cpu.

Related Issues (20)

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.