tmux-kanagawa/scripts
Andrew Taylor bb44e5c842 Fix: Avoid potential delay in calc of RAM (darwin)
The system_profiler command used to determine the total memory on darwin
systems performs an "Activation Lock" check. This can produce a delay in
returning total memory. I began experiencing delays of around 10 seconds.

Switching from system_profiler to sysctl to calculate total memory
bypasses the "Activation Lock" check / timeout scenario.

Results of "time" command using system_profiler:
system_profiler SPHardwareDataType  0.17s user 0.23s system 3% cpu 10.165 total
grep -a "Memory:"  0.00s user 0.00s system 0% cpu 10.164 total
awk '{print $2 $3}'  0.00s user 0.00s system 0% cpu 10.163 total

Results of "time" command using sysctl:
sysctl -n hw.memsize  0.00s user 0.00s system 83% cpu 0.004 total
awk '{print $0/1024/1024/1024 " GB"}'  0.00s user 0.00s system 86% cpu 0.004 total
2023-12-15 10:57:07 -05:00
..
attached_clients.sh Add attached-clients plugin 2022-06-18 05:35:23 -04:00
battery.sh Battery Status for Fedora 36 2022-08-10 14:14:17 +01:00
continuum.sh Trim tmux-continuum status if no save present 2023-07-22 18:12:37 -04:00
cpu_info.sh Merge branch 'master' into master 2023-09-25 13:30:27 -04:00
cwd.sh fix bug with multi-word cwd 2023-05-12 13:35:49 -04:00
dracula.sh Merge branch 'master' into master 2023-12-03 18:35:33 -05:00
fossil.sh missed on path change 2023-02-10 18:03:23 +00:00
git.sh git: add remote info support 2022-10-26 11:04:30 +02:00
gpu_power.sh fix gpu power monitor 2023-04-26 16:21:38 +02:00
gpu_ram_info.sh fix gpu memory 2023-04-26 13:44:09 +02:00
gpu_usage.sh fix gpu reporting issue #195 2023-03-22 13:23:19 +01:00
hg.sh Fix symbol for deleted files 2023-07-04 07:35:30 -05:00
kubernetes_context.sh added eks support for kubernetes prompt 2023-05-12 18:06:09 +03:00
mpc.sh feat: Added tmux.conf customizations 2023-10-19 16:09:27 +05:30
network.sh Update network.sh to not cut off SSIDs starting with ^ 2023-10-16 21:44:27 +02:00
network_bandwidth.sh check for bc program and show info if not found 2023-10-01 10:35:42 +02:00
network_ping.sh 🐛 fix(#180): set network_ping as executable 2023-01-07 16:55:14 +01:00
network_vpn.sh add only Darwin support 2023-04-08 15:12:22 -04:00
ram_info.sh Fix: Avoid potential delay in calc of RAM (darwin) 2023-12-15 10:57:07 -05:00
spotify-tui.sh Change default format to spt's default 2023-04-26 17:21:32 +02:00
ssh_session.sh refactor: Avoid if statements with double quotes and use single quotes instead to improve portability of plugin 2023-11-14 23:17:38 +01:00
synchronize_panes.sh [fix] 'synchronize-panes' is not runnable 2023-07-14 11:00:47 +02:00
terraform.sh Added terraform workspace support 2023-05-12 19:02:51 +03:00
tmux_ram_info.sh Fix shellcheck warnings 2023-07-09 01:07:22 -04:00
utils.sh Added synchronize-panes plugin 2021-12-22 22:50:05 +01:00
weather.sh Enable custom location for weather plugin 2021-12-03 18:49:34 +01:00
weather_wrapper.sh fix weather script 2023-04-20 14:59:54 +03:00