Commit graph

67 commits

Author SHA1 Message Date
Casper da Costa-Luis d11d0b6c7a
ps -aux => ps aux 2024-10-06 20:53:57 +01:00
johnnymatthews 88fbb1f21f Adds MacOS-specfic ps aux command.
Potentially closes https://github.com/tmux-plugins/tmux-cpu/issues/89
2024-08-31 11:48:03 -03:00
pacien f609bed961 helpers: fix non-atomic cache write
This was causing some values to be repeated more than once when using
multiple tmux windows at the same time, for example for the RAM
percentage in ram_percentage.sh.

GitHub: fixes #62
2023-01-05 21:24:47 +01:00
Phu Ninh 9eb3dba666
fix gram_percentage.sh when showing ram usage of multi GPUs (#76) 2021-12-15 11:57:54 +00:00
Casper da Costa-Luis 8f52392712
fix errors
- fixes #72 linting errors
2021-10-28 23:15:07 +01:00
Camille TJHOA 00ab1d2cda
Add CI linting (#72)
Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
2021-10-23 18:18:55 +01:00
Camille TJHOA 86c0023473 Fix load_status helper (#70)
load_status helper was based on cpu threshold whatever this percentage represents
2021-10-23 17:46:44 +01:00
Joel D. Elkins 4a6708ac8c
When getting a tmux option, first check session option
It seems logical to check session options, failing which, then, check
global options. This allows, for example, per-session customization of
the color tmux variables.
2021-04-06 21:52:57 -05:00
Casper da Costa-Luis 88ba243189
cpu_temp: support AMD Ryzen
- fixes #66
2021-02-12 16:14:41 +00:00
Casper da Costa-Luis 3e18060d85
add gpu_temp_unit
- fixes #66
2021-02-12 15:50:03 +00:00
Frederick Zhang 422e99d7b0
read from /proc/cpuinfo when nproc doesn't exist 2021-01-11 23:36:15 +11:00
Casper da Costa-Luis 9ba9badbbc
fix temperature fg colours
- fixes #63
2021-01-02 14:59:22 +00:00
Casper da Costa-Luis 824b37203a
variable rename 2020-10-18 13:21:14 +01:00
Casper da Costa-Luis e6eeec5c57
add GPU temperatures too 2020-10-18 00:45:31 +01:00
Casper da Costa-Luis 504844aade
tidy scripts code 2020-10-18 00:30:39 +01:00
Casper da Costa-Luis 13a7844f57
add temp icons & colours 2020-10-18 00:11:23 +01:00
Casper da Costa-Luis 1d27247757
initial cpu_temp 2020-10-17 23:55:29 +01:00
Casper da Costa-Luis cdad9a9ebc
fix LANG-related format errors
- fixes #59
2020-10-02 21:54:02 +01:00
Casper da Costa-Luis 08d029443f
standardise naming & document defaults 2020-08-09 11:51:58 +01:00
Yuta Katayama de5bd9cf04 add options to customize the threshold 2020-08-09 15:15:54 +09:00
Casper da Costa-Luis 3dcfbd23f4
increase cache time precision 2020-07-20 17:01:49 +01:00
Casper da Costa-Luis dd6a8c4c2b
safer tmpdir
may fix cygwin/osx
2020-07-20 17:01:47 +01:00
Casper da Costa-Luis b8d75f6000
add cached eval
- fixes #27
- related #15
- related #5
2020-07-10 00:22:16 +01:00
Casper da Costa-Luis f540f07acf
fix memory on non-en systems again
Merge pull request #50 from ms-jpq/master
2020-04-25 23:00:38 +01:00
mushroom 5feb1185be
fix issue with localization 2020-04-24 20:21:17 -07:00
hhiraba 1ae1ced027 Fix fcomp to modify load_status behavior 2020-04-24 07:57:19 +09:00
sonnmar 069c3651b2 fix calculation of ram percentage with vm_stat 2020-04-17 20:34:23 +02:00
Casper da Costa-Luis cec25d97ae
minor extra resilliency 2020-04-05 19:47:41 +01:00
Vinícius dos Santos Oliveira 60b41ab019
Fix ram_percentage.sh script when running on non-US locales 2020-04-04 19:16:04 -03:00
Casper da Costa-Luis 1d97cd34db
Apply suggestions from code review
slight tidy
2020-04-02 12:31:04 +01:00
Filriya 99aafee0d8 Use grep instead of perl 2020-04-02 14:02:17 +09:00
Filriya d9aae35e66
Update scripts/ram_percentage.sh
Co-Authored-By: Casper da Costa-Luis <casper.dcl@physics.org>
2020-04-02 13:34:21 +09:00
Filriya 3e34d43a67
Update scripts/ram_percentage.sh
Co-Authored-By: Casper da Costa-Luis <casper.dcl@physics.org>
2020-04-02 13:34:09 +09:00
Filriya a262f4a5cc Enable ram_percentage on macos 2020-03-30 14:12:34 +09:00
Casper da Costa-Luis f5494321b4
rename cpu_load_status => load_status 2020-03-09 23:44:52 +00:00
Casper da Costa-Luis 31b797bb1e
gram: support cuda-smi 2020-03-09 23:41:28 +00:00
Casper da Costa-Luis 02077415a8
GRAM: add GPU RAM use 2020-03-09 23:40:56 +00:00
Casper da Costa-Luis 898bf90ce1
RAM: clean up format handling 2020-03-02 13:24:36 +00:00
Artem Vasenin e2a7f5f8fc
feat: Add ram status 2020-03-02 13:14:48 +00:00
Artem Vasenin cb9147cce7 chore: Shorten no gpu error message 2020-02-19 22:18:52 +01:00
Camille TJHOA 0e6fb34a3e Add new "cpu_percentage_format" & "gpu_percentage_format" option 2019-10-11 14:37:28 +00:00
Camille TJHOA 5aa3b34a62 Add editorconfig 2019-10-11 09:15:38 +00:00
Casper da Costa-Luis 4b9267164a remove extraneous spacing
- uses %3.1f for all CPU stats
- fixes #25
2019-02-26 15:10:02 +01:00
Casper da Costa-Luis d943588bb4 add cuda-smi support
fixes #24
2019-02-26 15:06:25 +01:00
Casper da Costa-Luis d78c63a10d gpu_icon, fg, bg color 2018-07-12 15:34:47 +02:00
Casper da Costa-Luis c778fe3521 gpu_percentage 2018-07-12 15:34:47 +02:00
Camille TJHOA 12f7a74e25
Fix #21
Remove empty lines which cause issue with some version of `iostat`. See #21 for more details.
2018-01-19 08:42:24 +00:00
Sebastian Müller 3fae872d2a Replace , with . in cpu-load for German systems 2017-08-05 00:47:16 +02:00
Camille TJHOA ed2f1590b6 Add major improvements
Add dynamic foreground color support
Add dynamic background color support
Add dynamic icon support
2017-05-07 23:48:52 +02:00
Camille TJHOA 6281a72355 Fix #14 2016-10-10 20:45:58 +02:00