Commit Graph

213 Commits

Author SHA1 Message Date
Gregory Pakosz 0ad7f141dc added word boundaries when replacing uptime_xxx variables (2)
use perl instead of sead as on macOS sed doesn't support \b to match word boundaries
2021-10-31 20:55:47 +01:00
Gregory Pakosz 0da7d5c3db reworked pane / tty introspection (2)
fixed implementation and calls to _root()
2021-10-31 18:15:24 +01:00
Gregory Pakosz 1cd8ed93d3 added support for arguments to custom variables defined in ~/.tmux.conf.local 2021-10-31 18:01:15 +01:00
Gregory Pakosz 14bd87c7b2 added word boundaries when replacing uptime_xxx variables 2021-10-31 18:01:15 +01:00
Gregory Pakosz 90cdbbc32f check connectivity to github.com before installing and/or updating tpm and plugins (2) 2021-10-22 15:32:19 +02:00
Gregory Pakosz e8032e3ffb set default-terminal to tmux-256color when available, fixes #205, fixes #382, closes #386
see https://github.com/tmux/tmux/wiki/FAQ#i-dont-see-italics-or-italics-and-reverse-are-the-wrong-way-round
2021-10-20 19:07:23 +02:00
Gregory Pakosz a71d0d9f8d made background sleep process exit immediately when exiting tmux, fixes #509 2021-10-19 08:25:13 +02:00
Gregory Pakosz 18775e12a4 reworked pane / tty introspection, fixes #403, fixes #458
- renamed _tty_info() to _pane_info()
- pass both #{pane_pid} and #{pane_tty} to _pane_info()
- when inspecting ps output, walk down from #{pane_pid} to the child-most pid
2021-10-15 20:07:36 +02:00
Gregory Pakosz a976b17bed worked around Falcon.app agent slowing everything down (2), fixes #522 2021-10-06 16:28:39 +02:00
Gregory Pakosz f8a5a08868 worked around Falcon.app agent slowing everything down, fixes #492
it appears the Falcon anti-malware product for end-points slows down ps -t /dev/ttysXXX
commands 🤷

the workaround consists in passing ttysXXX instead of /dev/ttysXXX and is achieved
by removing the /dev/ prefix in #{pane_tty} expansion with the help of formats
substitutions
2021-10-03 09:43:19 +02:00
Gregory Pakosz df46ab2ba9 fixed tpm plugins not installing on CentOS 7, fixes #520
- drop git clone --shallow-submodules as it requires git >= 2.9.0
- display a message when one of the tpm script fails
2021-10-03 09:40:48 +02:00
Gregory Pakosz a97e3021cc updated tpm integration
- automatically delete tpm when not used
- automatically delete unused plugins
- install plugins when subsequently enabling then in ~/.tmux.conf.local
- use <prefix> + u to update plugins as <prefix> + U is bound to Urlview, fixes #507
2021-09-18 16:35:48 +02:00
Gregory Pakosz 4f332e6b17 fixed _battery_info() when pmset doesn't report a charge percentage, fixes #512 2021-08-31 11:02:45 +02:00
Gregory Pakosz a63dc5c6a9 check connectivity to github.com before installing and/or updating tpm and plugins, fixes #513 2021-08-30 22:23:07 +02:00
Gregory Pakosz 4ef0626b6d revert "mitigate tmux displaying its "<... not ready>" message, closes #496"
this reverts commit 67b1d38a87.

the proposed mitigation causes flickering for some, see followups in #496
2021-08-19 11:51:49 +02:00
Gregory Pakosz 67b1d38a87 mitigate tmux displaying its "<... not ready>" message, closes #496
the "flickering" perceived when the "<... not ready>" message is long won't be
totally eliminated until tmux 3.3 though (commit 38c5788232e0e3abdd08ade55a9d4fbcda637df1)
2021-07-20 10:42:21 +02:00
Gregory Pakosz 1f91646af1 replaced printf '\n' calls by echo calls, fixes #479
TPM plugins further editing status-left or status-right may alter the content
in such a way that the line feed character becomes a space
2021-05-11 09:49:33 +02:00
Gregory Pakosz 760bf4fabd made _apply_bindings() work with tmux 3.2 stock bindings, fixes #472 2021-04-25 14:42:00 +02:00
Gregory Pakosz 3bfec1a25a made version detection more robust in case tmux executable is renamed (3), fixes #462
fixed a regression introduced by commit 8aefa1e798 that breaks
version detection for tmux HEAD for which 'tmux -V' prints e.g. tmux next-3.3
2021-03-18 11:54:48 +01:00
Gregory Pakosz 8aefa1e798 made version detection more robust in case tmux executable is renamed (2), fixes #457 2021-03-12 09:57:38 +01:00
Gregory Pakosz 4868ac4bd9 worked around broken /sys/class/power_supply/<supply_name>/capacity > 100, resolves #460 2021-03-07 10:13:16 +01:00
Gregory Pakosz a752c41bca fixed copy to os clipboard on macOS when xclip or xsel is installed, fixes #459 2021-03-04 17:55:21 +01:00
Gregory Pakosz 4bf9263fbd fixed variable replacement in tmux_conf_theme_status_right and tmux_conf_theme_status_left (2), fixes #442 2021-01-11 07:54:05 +01:00
Neil Mahoney d2b5758bdd fix left status prefix rendering 2021-01-11 07:29:24 +01:00
Gregory Pakosz 788ffd8e6f fixed variable replacement in tmux_conf_theme_status_right and tmux_conf_theme_status_left, fixes #356 2021-01-10 16:53:12 +01:00
Frederick Zhang 41af713ff7 fixed BusyBox's tr command compatibility, fixes #441 2021-01-10 09:53:23 +01:00
Gregory Pakosz d950ee3c8c added support for tpm, resolves #61 2021-01-09 21:04:48 +01:00
Gregory Pakosz 53d7ce8311 fixed indentation in _apply_overrides() 2020-12-13 20:50:04 +01:00
Gregory Pakosz 8df1666ddc improved status line rendering, fixes #419 (3)
fixed spacers
2020-12-12 19:35:46 +01:00
Gregory Pakosz 249f0be096 fixed use of invalid 'print' command 2020-12-12 18:38:27 +01:00
Gregory Pakosz 8a4dabb196 added support for #{hostname_full} and #{hostname_full_ssh}, closes #361 2020-12-08 22:10:36 +01:00
Gregory Pakosz e74dc67a7d improved status line rendering, fixes #419 (2)
- do not apply attr to spacers
- fixed attr for last window, window with activity and window with bell
2020-12-05 10:33:13 +01:00
Matthew Broomfield e3960e5347 added icon for mouse mode, fixes #295
mouse icon is to the left of the battery by default.

_toggle_mouse no longer prints a status message as the status icon
should give enough information.
2020-11-24 17:33:23 +01:00
Gregory Pakosz 8c342edc6f fixed 'tmux_conf_theme_status_right' default value, fixes #422 2020-11-04 11:31:20 +01:00
Gregory Pakosz 88a10631c0 improved status line rendering, fixes #419
- non current windows now use separators when they're enabled
- fixed style for last window, window with activity and window with bell
2020-10-31 21:21:19 +01:00
Gregory Pakosz efee3bb4ac made version detection more robust in case tmux executable is renamed 2020-10-27 22:03:08 +01:00
Gregory Pakosz 918c0f252c fixed status line that doesn't work with tmux 2.4 2020-10-27 19:34:00 +01:00
Gregory Pakosz a43ac95e5f fixed status line that doesn't work with tmux 2.3, fixes #418 2020-10-16 11:21:11 +02:00
Gregory Pakosz d0e073dd08 added 'tmux_conf_theme_colour_XX' variables to ease theming
closes #189, closes #224, closes #255
2020-10-10 15:54:49 +02:00
Gregory Pakosz e03d73df73 added support for custom variables defined in ~/.tmux.conf.local (2), fixes #417 2020-10-08 09:22:41 +02:00
Gregory Pakosz 8ffeb1d809 fixed '<prefix> + e' binding when EDITOR is set to 'gvim' or 'mvim', fixes #416 2020-10-06 08:29:52 +02:00
Gregory Pakosz 13689839d4 updated _maximize_pane() that stopped working with tmux 3.2 (2), fixes #415 2020-10-03 08:29:28 +02:00
Gregory Pakosz 8e2502abb3 added support for custom variables defined in ~/.tmux.conf.local
closes #96, closes #394
2020-10-02 23:04:33 +02:00
Gregory Pakosz bcb071152b updated _maximize_pane() that stopped working with tmux 3.2, fixes #381 2020-09-29 22:49:41 +02:00
Gregory Pakosz a439667d65 worked around tmux not killing jobs launched with run-shell -b, fixes #407
upon exiting, tmux < 3.2 waits for jobs ran with run-shell, even those
launched with -b

the workaround consists in still launching "heavy" jobs from the status
line with #() even though it means e.g. battery information will get
updated once per attached client
2020-09-26 23:28:28 +02:00
Gregory Pakosz fbe2eb311d fixed window-status-current-format, fixes #390, closes #333 2020-09-18 22:09:27 +02:00
Gregory Pakosz 3c09b78aa6 replaced awk by perl in _ssh_or_mosh_args() to benefit from word boundary anchors, closes #363 2020-09-18 13:36:11 +02:00
Gregory Pakosz 8976729f4f added support for explicit 'split-window' with ssh reconnect, closes #164
tmux only allows binding to existing commands, so when the command given to
'split-window' is 'ssh' and only 'ssh', the binding is converted to a call to
_split_window_ssh()
2020-09-18 13:34:10 +02:00
Joachim Werner 39cc430268 made #{uptime_xxx} work under FreeBSD 2020-09-13 14:17:09 +02:00
Joachim Werner b4a5d06740 made #{loadavg} work under FreeBSD 2020-09-13 14:15:58 +02:00