Commit graph

235 commits

Author SHA1 Message Date
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
vdbe
61727758ac
Cleanup shellcheck warnings (#178)
* chore: shellcheck-warnings for catppuccin.tmux

Command used: `shellcheck catppuccin.tmux -ax -s bash`

* shellcheck: fix all warnings

Command used: `shellcheck -a catppuccin.tmux $(ls custom/*.sh pane/*.sh status/*.sh window/*.sh)`

* shellcheck: update workflow to check warnings

* shellcheck: include warnings from sourced files
2024-03-30 21:07:56 +01:00
Valentin Uveges
a1079943b6
feat: improve transparent background (#175)
* feat: improve transparent background

* fix: fix for config2

* chore: remove status right separator invert

* chore: update config presets in documentation
2024-03-28 18:55:01 +02:00
Valentin Uveges
e2d345648c
Move code out of main (#172)
* feat(status, window): add option to make overwrite status background color, add option to set the separator between windows

* feat(window): update documentation

* feat(window): update documentation

* feat(refactor): move code out of main and into separated files

* Update catppuccin.tmux

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

* Update catppuccin.tmux

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

---------

Co-authored-by: vdbe <44153531+vdbe@users.noreply.github.com>
2024-03-24 13:33:34 +02:00
Valentin Uveges
809361f5c2
feat(status, window): add option to make overwrite status background … (#170)
* feat(status, window): add option to make overwrite status background color, add option to set the separator between windows

* feat(window): update documentation

* feat(window): update documentation
2024-03-24 10:36:51 +02:00
vdbe
e80cb735bb
feat(uptime): replace plugin with sed (#163)
* module(uptime): replace plugin with custom sed

* module(uptime): update doc
2024-03-22 19:29:25 +01:00
Valentin Uveges
6e40906b2d
fix(window_status): fix window space between text, window status, right separator (#168) 2024-03-18 16:33:08 +01:00
Muhammad Zafar
d0371badc7
Add tmux-clima as another module for weather (#161)
* Add tmux-clima as a module

* Update tmux option names according to the clima module

* Add README for tmux-clima

* Update README.md according to suggestions

* Remove unnecessary readme part

---------

Co-authored-by: vdbewout <vdbewout@gmail.com>
2024-03-18 14:16:23 +01:00
Ikko Eltociear Ashimine
c0861b7861
docs(README.md): fix typo prefered -> preferred 2024-03-17 22:26:48 +00:00
David Kaufman
843946e176
make status_justify configurable (#145)
* make status_justify configurable

* added README

* moved below status_default

* refactor: pr comments

---------

Co-authored-by: Hamothy <58985301+sgoudham@users.noreply.github.com>
Co-authored-by: sgoudham <sgoudham@gmail.com>
2024-03-17 16:43:29 +01:00
qadzek
2a3bc9ea91
Clarify creating a custom module (#164)
* Clarify creating a custom module

* Fix path

Co-authored-by: Hamothy <58985301+sgoudham@users.noreply.github.com>

* Fix formatting and mention required plugins

* docs: indentation & small tweaks

---------

Co-authored-by: Hamothy <58985301+sgoudham@users.noreply.github.com>
Co-authored-by: sgoudham <sgoudham@gmail.com>
2024-03-17 16:41:20 +01:00
vdbe
4eb10fa510
ci: add testing & shellcheck workflows (#159) 2024-03-15 15:34:04 +00:00
vdbe
cece0c3677
Merge pull request #158 from JesseStorms/patch-1
Fixed typos and formatting oversight in readme.md
2024-03-13 18:51:07 +01:00
Jesse Storms
45e4dec2bb
Fixed typos and formatting oversight in readme.md 2024-03-13 18:36:53 +01:00
vdbe
f31184d099
Merge pull request #156 from xwjdsh/feat/add-space-to-window-status-icon
Add space to default window status icons
2024-03-12 18:32:02 +01:00