Giter Club home page Giter Club logo

tmux-suspend's Issues

how to configure status format option

I can't figure out how to configure options like status-right in the @suspend_suspended_options configuration.

set -g @suspend_suspended_options " \
  @mode_indicator_custom_prompt:: ---- , \
  @mode_indicator_custom_mode_style::bg=brightblack\\,fg=black, \
  status-right::#{tmux_mode_indicator} [fg=colour15,bg=colour136]#{?window_zoomed_flag, ZOOM ,}#[default] [fg=colour136]#(whoami)#[default]@#H | [fg=colour136]%h %d %H:%M:%S#[default] #{online_status}, \
  status-style::bg=brightblack\\,fg=colour15, \
  window-status-current-style::bg=colour245\\,fg=colour15, \
"

This code fails at the status-right line

How to get current session when suspending

I would like to set an option only for the current session when I suspend. However, I'm not sure how to get the current tmux session.

set -g @suspend_on_resume_command " \
  session=$(tmux display-message -p '#S'); \
  tmux set -qt $session @catppuccin_status_modules_right 'directory user host session'; \
  tmux run '~/.config/tmux/plugins/tpm/tpm'; \
  "

set -g @suspend_on_suspend_command " \
  session=$(tmux display-message -p '#S'); \
  echo $session > ~/.tmux_suspend_session; \
  tmux set -qt $session @catppuccin_status_modules_right 'user host session'; \
  tmux run '~/.config/tmux/plugins/tpm/tpm'; \
  "

~/.tmux_suspend_session is empty after suspending, because I think tmux is executing this outside of the session. Or if you have a better way of only changing an option for a single session, that would also be helpful.

Support for custom/multiple prefix keys?

I am trying to use this plugin, however in my setup, I use C-a as prefix2 (so both C-b and C-a work as prefix keys), however, this plugin only suspends the outer session when attempting to use C-b.

Is it possible to support custom or multiple prefix keys?

Support smarter options reverting on resume

Currently options set in @suspend_on_suspend_command needs to be manually reverted in @suspend_on_resume_command.

This leads to duplication in tmux config file. There needs to be a smarter alternative where options set for suspended state are automatically reverted to pre-suspend values when resumed.

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.