start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env python3 | |
# KSysGard sensor for NVIDIA GPU temperature. Supports multiple GPUs. | |
# Needs: Python 3 and nvidia-smi | |
import subprocess | |
import xml.etree.ElementTree as ET | |
def get_xml_tree(): | |
return ET.fromstring(subprocess.check_output(['nvidia-smi', '-q', '-x'])) |
#!/usr/bin/perl -w | |
# act as a KSysGuard sensor | |
# provides NVIDIA GPU temperature via `nvidia-settings` | |
# Usage | |
# 1. save this file, make sure it has a exec permission | |
# 2. in KSysGuard's menu, open `File` -> `Monitor Remote Machine` | |
# 3.1 in new dialog, type `Host` whatever you want | |
# 3.2 set `Connection Type` to `Custom command` |