forked from DustVoice/dotfiles
Add check-iommu command to aliases
This commit is contained in:
parent
1f6f27565b
commit
033f91abd9
1 changed files with 15 additions and 0 deletions
15
.zsh_alias
15
.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 &'
|
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
|
# bspwm
|
||||||
# ===
|
# ===
|
||||||
|
|
Loading…
Reference in a new issue