From 033f91abd947b125eed8308ff8a2ce9f0a5c52eb Mon Sep 17 00:00:00 2001 From: DustVoice Date: Thu, 24 Sep 2020 14:50:41 +0200 Subject: [PATCH] Add check-iommu command to aliases --- .zsh_alias | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.zsh_alias b/.zsh_alias index 04801f42..0667816f 100644 --- a/.zsh_alias +++ b/.zsh_alias @@ -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 # ===