Add check-iommu command to aliases

This commit is contained in:
David Holland 2020-09-24 14:50:41 +02:00
parent 1f6f27565b
commit 033f91abd9
Signed by: DustVoice
GPG key ID: 47068995A14EDCA9

View file

@ -93,6 +93,21 @@ alias get-font='get-font-func'
alias lock-screen='xset 600 60 && env XSECURELOCK_AUTH_BACKGROUND_COLOR=rgb:28/2a/36 XSECURELOCK_AUTH_FOREGROUND_COLOR=rgb:f8/f8/f2 XSECURELOCK_AUTH_TIMEOUT=10 XSECURELOCK_BLANK_TIMEOUT=-1 XSECURELOCK_BLANK_DPMS_STATE=on XSECURELOCK_DISCARD_FIRST_KEYPRESS=1 XSECURELOCK_PASSWORD_PROMPT=cursor XSECURELOCK_SHOW_DATETIME=1 XSECURELOCK_SHOW_HOSTNAME=1 XSECURELOCK_SHOW_USERNAME=1 xsecurelock &'
# ===
# ===
# System maintenance
# ===
function check-iommu-func() {
for g in /sys/kernel/iommu_groups/*; do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*; do
echo -e "\t$(lspci -nns ${d##*/})"
done;
done;
}
alias check-iommu='check-iommu-func'
# ===
# ===
# bspwm
# ===