Commit graph

251 commits

Author SHA1 Message Date
RingOfStorms (Josh)
d078123cd8 add coal variant comment
Some checks failed
release-please / release-please (push) Has been cancelled
Shellcheck / Shellcheck (push) Has been cancelled
Tests / Test (push) Has been cancelled
Tests / Old Bash (push) Has been cancelled
2024-09-28 21:47:29 -05:00
RingOfStorms (Josh)
9ad5166310 Merge branch 'main' of github.com:catppuccin/tmux 2024-09-28 21:45:05 -05:00
Bryan SebaRaj
1612a23174
feat(status): Add support for status module middle separators (#310)
* added middle separator for status

* fixed color + updated readme

* Update README.md

Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>

---------

Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>
2024-09-17 06:53:41 +00:00
Yeho
c43c10fe94
docs: add clarifying note in the README about null values (#300)
* readme: Add clarifying note about null values

* readme: Remove duplicate documentation of null values
2024-09-13 07:35:24 +00:00
Mikel Bravo
8276c5a5e3
feat(status): window specific separator config (#198)
* feat(window-builder): get window separator based on window type

* feat(window-format): send window type param to builder

fix: apply suggestions from code review

* feat(readme): add window type separator options
2024-09-07 10:03:44 +00:00
Paul Thomson
c31b9b2c6c
fix(kube): escape env var
Need this to be interpreted when tmux status is updated rather than when
this script executes as the value is set in the tmux env rather than the
current shell
2024-09-04 08:09:42 +00:00
github-actions[bot]
c26d7b8ce5
chore(main): release 0.2.0 (#272)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-09-02 07:45:07 +00:00
vdbe
9b57c20020
fix: escaping in options (#298)
* fix: escaping in options

* chore: ignore shellcheck warning
2024-08-23 09:13:18 +00:00
vdbe
a71f3c039b
fix: warning @catppuccin_flavour (#296)
No longer warn when `@catppuccin_flavor` _and_ `@catppuccin_flavour` are not set
2024-08-15 08:40:36 +00:00
vdbe
9ee1695d75
fix: warning @catppuccin_window_status (#294)
No longer print warning if `@catppuccin_window_status` is not used
2024-08-14 22:06:05 +00:00
vdbe
41f2cf2e7a
refactor: catppuccin_window_status{_icon}_enable->catppuccin_window_status (#292)
`@catppuccin_window_status_enable` and
`@catppuccin_window_status_icon_enable` have been merged into
`@catppuccin_window_status`.

Current configurations will remain to work but receive a warning message of the
change.
2024-08-14 18:48:59 +00:00
vdbe
84a84bdd8f
refactor: @catppuccin_flavour -> @catppuccin_flavor (#277)
Most catppuccin ports have adopted the spelling flavor.

`@catppuccin_flavour` is still available but no longer documented and
`@catppuccin_flavor` takes priority.
2024-08-14 18:48:10 +00:00
vdbe
3ffbc3700b
fix: add missing batch options catppuccin_pane{,_active}_border_style
fix: add missing batch options catppuccin_pane{,_active}_border_style
2024-08-14 14:08:43 +00:00
j-xella
3860374835
Don't prepend separator before empty window status icons (#270)
Only works for catppuccin_window_status_icon_enable = yes

Co-authored-by: Aleksandr Jakusev <no@email.com>
2024-08-14 11:03:24 +00:00
vdbe
99013fafe6
perf: batch tmux show (#288)
* feat: batch tmux show options

* dont check for duplicates

* fix: status modules

* batch and cache build_window_icon

* perf: batch new options

* chore: tmux_batch_setup_module -> tmux_batch_setup_status_module

* fixup! perf: batch tmux show-options (#240)

Changes the line separator used by tmux_batch from ':' to the ascii unit
separator

FIXES: #240

* fix: string escaping of `..._tmux_batch_...`

`tmux show -v <option>` returns/prints the escaped value while the value string
of `tmux show <option>` is not escaped.

FIXES: #281
2024-08-12 11:52:27 +00:00
j-xella
df238924bc
Don't add icon separator if there is no icon for a status module (#265)
Implemented with advice of @vdbe

Co-authored-by: Aleksandr Jakusev <no@email.com>
2024-08-09 19:20:58 +00:00
vdbe
e2a1043f42
Revert "perf: batch tmux show-options (#240)" (#283)
This reverts commit 3c6f6f282b.
2024-08-06 13:25:59 +00:00
vdbe
a2dda02b43
feat: error/warning messages on first load (#278)
`tmux_echo` now uses hooks this allows it to print on the first load. To cleanup the hooks every hook gets a _unique_ number/index, this is _not_ enforced.
2024-08-05 14:44:19 +00:00
vdbe
362a306db7
feat: warn users of whitespace in module lists (#266) 2024-08-05 12:57:45 +00:00
vdbe
3c6f6f282b
perf: batch tmux show-options (#240)
* feat: batch tmux show options

* dont check for duplicates

* fix: status modules

* batch and cache build_window_icon

* perf: batch new options

* chore: tmux_batch_setup_module -> tmux_batch_setup_status_module
2024-08-05 10:09:45 +00:00
vdbe
51dde6e8d4
fix(pomodoro_plus): option names (#273) 2024-08-05 09:04:28 +00:00
vdbe
90dcb8ada9
fix(ci): disable release-please draft releases (#271)
When a release is a draft release-please can't find it,
see https://github.com/googleapis/release-please/issues/1650 for
more info.
2024-08-05 09:01:13 +00:00
github-actions[bot]
fc80a6d0a3
chore(main): release 0.1.0 (#268)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-08-04 14:18:14 +00:00
vdbe
5fbacdf355
feat: releases (#260)
* feat: bootstrap release please

* docs: add instruction to install a tag/release via tpm

* chore: add `tmux.conf` placeholder for bug template

* docs: add CONTRIBUTING.md

Copied from 3fdc011242/CONTRIBUTING.md

* refactor: change vlatest to latest

* docs: remove merge instructions

* docs: use full version as tag msg
2024-08-04 14:16:57 +00:00
Bryan Hoang
408c02ccf4
fix(uptime): filter out singular "user" string in sed expression (#255)
Previously, on machines where the logged-in user count is 1, the `sed`
expression to filter out "... X users, ..." doesn't filter out "... X
user, ...", leading to something like

```
1h 05,  1 user,  load average: 0.05, 0.72, 1.62m
```

being displayed in the module. When the user count is greater than 1
(e.g., after `ssh localhost`), the `uptime` module displays

```
1h 05m
```

as expected.

The Stack Overflow answer the `sed` expression is based on [^1][^2]
doesn't seem to consider the case when the user count is 1.

With this patch, the `uptime` module display correctly when the user
count is 1.

[^1]: https://stackoverflow.com/a/28353785
[^2]: https://github.com/catppuccin/tmux/pull/163
2024-07-19 09:50:21 +00:00
given
004467850b
Update docs to explain color/background swap (#251) 2024-07-18 13:25:51 +00:00
vdbe
39dea78206
fixup! fix: status module trailing space transparancy (#250) (#253)
don't change `show_text`
2024-07-17 19:20:44 +00:00
vdbe
735363e7a0
fix: status module trailing space transparancy (#250) 2024-07-15 22:35:02 +00:00
Iván Arjona Alonso
598e9e9193
Add support to kube-tmux in status bar (#249)
* Add support to kube-tmux in status bar

---------

Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>
2024-07-15 15:07:52 +00:00
Chet Luther
49972658aa
feat(menu): add menu style options (#247)
add menu style options to allow `#{thm_x}` styling of menus.

- @catppuccin_menu_style (`menu-style`)
- @catppuccin_menu_selected_style (`menu-selected-style`)
- @catppuccin_menu_border_style (`menu-border-style`)
2024-07-15 15:04:49 +00:00
Kilian Mio
33c4fd62df
fix: better default for application.sh (#246) 2024-07-12 16:33:14 +00:00
vdbe
ff6dacb12f
feat: warning when trying to load a missing module (#244)
print/echo a warning when a `catppuccin_status_modules_right/left` is
trying to load a none existing module.
This does only work when reloading (`tmux source ~/.tmux.conf` /
`tmux source ~/.config/tmux/tmux.conf`)
2024-07-12 07:04:07 +00:00
Daniel Nocito
893917360d
Add support to tmux-pomodoro-plus plugin in status bar (#241)
* Add support to tmux-pomodoro-plus plugin in status bar

* Update README.md with setup information for the pomodoro module
2024-07-02 15:13:24 +00:00
renovate[bot]
e7cd05facc
chore: Configure Renovate (#231)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-09 21:52:21 +01:00
vdbe
9da7bb5e2e
build: bump whiskers to 2.1.1 (#222)
whiskers 2.1.1 no longer eats trailing newlines
2024-05-23 17:39:08 +00:00
vdbe
4ca26b774b
docs/cleanup (#219)
* doc(README): use default values as example

* doc(README): remove unused options

* doc(README): remove dead link

* doc(README): fix theme links
2024-05-18 17:47:12 +00:00
vdbe
697087f593
Fix/test old bash (#216)
* test(old-bash): use tmux instead of mocking it

* quote output
2024-05-12 16:34:44 +00:00
vdbe
c056412238
fixup! Feat: interpolate colors (#208) (#214)
macos bash version (3.2.57) does not support the `"${val:1:-1}"` syntax
2024-05-12 07:22:55 +00:00
vdbe
4a561f9f08
fixup! Feat: interpolate colors (#208) (#210)
add missing argument
2024-05-11 16:35:46 +00:00
vdbe
6ba7a72925
Feat: interpolate colors (#208)
* feat: interpolate theme colors

* doc: add interpolated colors to readme
2024-05-11 16:23:05 +00:00
vdbe
2292669be3
refactor(theme): use whiskers (#207) 2024-05-11 15:26:41 +00:00
vdbe
804f060fe1
Revert "fix(window_builder): number position left (#205)" (#209)
This reverts commit c0e072cb8b.
2024-05-11 10:01:16 +00:00
vdbe
75ffbfea01
fix(pane_builder): use default background instead of thm_bg (#204)
fix #180
2024-05-10 12:48:39 +00:00
vdbe
c0e072cb8b
fix(window_builder): number position left (#205)
Middle separator color was inverted when number position left
2024-05-10 12:47:23 +00:00
Zoket
a10163042b
fix(status): support tmux-battery attached status icon (#201) 2024-04-29 18:41:57 +00:00
Hammy
a556353d60
chore(issue-templates): fix show & tell discussion link (#196) 2024-04-21 12:38:55 +01:00
Hammy
67e8f231fd
docs: add issue templates (#195)
* docs: add issue templates

* refactor: mention show and tell
2024-04-21 10:26:01 +02:00
lluchkaa
69d37dfbb0
Respect status_background in message-style (#193)
* respect status background in message style

* move message_background to existing block
2024-04-20 10:43:59 +02:00
chacon
b26eb2fa6d
Adding git to status (#191)
* added git.sh file

* added instrucctions to README.md

* instruccions typo corrections

* Customize git module and instrucctions

* Correction for Shellcheck / Shellcheck (pull_request) test. added escape caracters \ in n git.sh script

* Rename the module to gitmux

* README.md corrections

* README.md typo corrections
2024-04-17 12:52:10 +02:00
vdbe
5ed4e8a6a2
fixup! Cleanup shellcheck warnings (#178) (#179)
Dont remove checking for `catppuccin.tmux`
2024-03-30 22:11:39 +01:00