Giter Club home page Giter Club logo

Comments (4)

bruno- avatar bruno- commented on August 28, 2024

That's unusual, never had this one.
Care to link or paste the content of your .tmux.conf?

Also, what is the output of tmux show -g status-right?

from tmux-battery.

adamgibbins avatar adamgibbins commented on August 28, 2024

So I can reproduce with an absolute bare minimum tmux.conf:

set -g @tpm_plugins "              \
  tmux-plugins/tmux-battery        \
"

run-shell ~/.tmux/plugins/tpm/tpm
set-option -g status-right "#[fg=yellow][ #{battery_percentage} #{battery_remain}] [ %a %d-%h %H:%M ]"

If I run :show -g status-right it outputs:
status-right "#[fg=yellow][ #{battery_percentage} #{battery_remain}] [ %a %d-%h %H:%M ]"

I'm running tmux 2.0 under Terminal in Yosemite (although I use iTerm2 day to day, where its also reproducible).

from tmux-battery.

bruno- avatar bruno- commented on August 28, 2024

Hey,
the above won't work .. run-shell ~/.tmux/plugins/tpm/tpm line should be the absolute last line in .tmux.conf.

Try setting status-right first, and leaving plugin definition and initialization last:

set-option -g status-right "#[fg=yellow][ #{battery_percentage} #{battery_remain}] [ %a %d-%h %H:%M ]"

set -g @tpm_plugins "              \
  tmux-plugins/tmux-battery        \
"
run-shell ~/.tmux/plugins/tpm/tpm

from tmux-battery.

adamgibbins avatar adamgibbins commented on August 28, 2024

Huh, that has indeed fixed - thanks!
I find that very odd, I'd presume the tmux config was sequential and that you couldn't use plugins until they were defined. Oh well, lesson learnt - thanks again!

from tmux-battery.

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.