Move away from being dependant on Ansible task.yaml config setup and
move all login into install.sh to support installing tmux config just by
cloning and running the script.
The battery indicator should only be shown on devices with a battery
power supply. It should not be shown when a wireless USB device is
attached that happens to have a battery. This patch potentially fixes
the issue of showing a 0% battery reading on desktops.
Use `k10temp-pci-00c3` sensor output instead of
`asus_wmi_sensors-virtual-0` to read the CPU temperature because on the
ASUS Prime x470 Pro the latter is buggy and can result in the UEFI fan
control either slamming at 100% or not registering a temperature change
at full load.
While using `tmux-256color` has been working great for the longest time,
`git` on macOS Venture with Apple Silicon does not like it. Complaints
of incorrectly configured terminal are resolved in this config by
removing this custom termdb entry. Alternative would be to install it
again but it doesn't seem to be necessary anymore.
Using `xclip` or `xsel` in WSL2 started causing Windows GUI applications
to hang when pasting from the clipboard set by `xclip`/`xsel` waiting on
input from a clipboard process which had already exited. When WSL is
detected, use `win32yank.exe` instead. This is available via Chocolatey
but is also shipped with the Neovim Windows installation.
For more context, see https://github.com/microsoft/terminal/issues/11945
Replace the query of CPU temp from the OpenHardwareMonitor's JSON served
via the network on the Windows host with a call to powershell to instead
read the WMI objects that OpenHardwareMonitor also emits. This is more
robust since powershell.exe is always available and does not require
Windows Defender firewall rules to allow connections from WSL2's VM to
the Windows host.