Update the `system-info` directory with the addition of a `systemd` service file and an new Linux script to display current CPU temperature and core/thread utilization. Update `.conduit.yaml` with addition `apt` dependencies `sysstat` and `jq`. Update the install and remove scripts to setup and tear down the `systemd` user unit. Lastly, decrease the `tmux` status line update interval from 5 to 2 seconds.
13 lines
376 B
Bash
Executable File
13 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
script_dir=`dirname $0`
|
|
|
|
if [ `uname` = Darwin ]; then
|
|
cp $script_dir/system-info.plist ~/Library/LaunchAgents/system-info.plist
|
|
launchctl load -w ~/Library/LaunchAgents/system-info.plist
|
|
else
|
|
cp $script_dir/system-info.service ~/.config/systemd/user/system-info.service
|
|
systemctl --user enable system-info
|
|
systemctl --user start system-info
|
|
fi
|