2019-12-04 13:06:32 +03:00
|
|
|
# Tmux helper
|
|
|
|
|
Small app that perform system check and print TMUX friendly output.
|
|
|
|
|
|
2025-07-16 16:20:41 +03:00
|
|
|
<img width="1495" height="1264" alt="image" src="https://github.com/user-attachments/assets/7b9ffc97-0b59-4028-9b5d-f29347d16000" />
|
|
|
|
|
|
2019-12-04 13:06:32 +03:00
|
|
|
|
2019-12-04 13:06:54 +03:00
|
|
|
### Building
|
2019-12-04 13:06:32 +03:00
|
|
|
`cargo build --release`
|
|
|
|
|
or get binary on release page
|
|
|
|
|
|
2020-05-20 12:29:22 +03:00
|
|
|
### Fetures
|
|
|
|
|
```shell
|
|
|
|
|
Utility for printing system info for tmux status line.
|
|
|
|
|
|
2025-07-16 16:20:41 +03:00
|
|
|
Usage: tmux-helper [OPTIONS]
|
2020-05-20 12:29:22 +03:00
|
|
|
|
2025-07-16 16:20:41 +03:00
|
|
|
Options:
|
|
|
|
|
-c, --cpu
|
|
|
|
|
Print cpu load bar.
|
|
|
|
|
-m, --mem
|
|
|
|
|
Print mem usage bar.
|
|
|
|
|
--low <low>
|
|
|
|
|
Low threshold (0.0 - 1.0) [default: 0.7]
|
|
|
|
|
--mid <mid>
|
|
|
|
|
Mid threshold (0.0 - 1.0) [default: 0.9]
|
|
|
|
|
-p, --mpris
|
|
|
|
|
Show player info using MPRIS2 interface.
|
|
|
|
|
-d, --mpd
|
|
|
|
|
Show mpd player using MPD native protocol.
|
|
|
|
|
-l, --localtime [<localtime>]
|
|
|
|
|
Local time
|
|
|
|
|
-u, --utctime [<utctime>]
|
|
|
|
|
UTC time
|
|
|
|
|
-s, --symbol [<bar_symbol>]
|
|
|
|
|
Symbol to build bar [default: ▮]
|
|
|
|
|
-e, --empty-symbol [<bar_empty_symbol>]
|
|
|
|
|
Symbol to represent the empty part of the bar [default: ▯]
|
|
|
|
|
-a, --mpd-address <mpd_address>
|
|
|
|
|
<ADDR>:<PORT> of MPD server. [default: 127.0.0.1:6600]
|
|
|
|
|
--COLOR_LOW <COLOR_LOW>
|
|
|
|
|
CPU and MEM bar color while low usage. [default: 119]
|
|
|
|
|
--COLOR_MID <COLOR_MID>
|
|
|
|
|
CPU and MEM bar color while mid usage. [default: 220]
|
|
|
|
|
--COLOR_HIGH <COLOR_HIGH>
|
|
|
|
|
CPU and MEM bar color while high usage. [default: 197]
|
|
|
|
|
--COLOR_TRACK_NAME <COLOR_TRACK_NAME>
|
|
|
|
|
Color of track name filed. [default: 46]
|
|
|
|
|
--COLOR_TRACK_ARTIST <COLOR_TRACK_ARTIST>
|
|
|
|
|
Color of artist name filed. [default: 46]
|
|
|
|
|
--COLOR_TRACK_TIME <COLOR_TRACK_TIME>
|
|
|
|
|
Color of playing time field. [default: 153]
|
|
|
|
|
--COLOR_END <COLOR_END>
|
|
|
|
|
Default color using to terminate others. [default: 153]
|
|
|
|
|
-h, --help
|
|
|
|
|
Print help
|
|
|
|
|
-V, --version
|
|
|
|
|
Print version
|
2020-05-20 12:29:22 +03:00
|
|
|
```
|
2020-07-10 14:11:50 +03:00
|
|
|
|