diff --git a/content/posts/arch/index.md b/content/posts/arch/index.md index 8099d20..c4f3b11 100644 --- a/content/posts/arch/index.md +++ b/content/posts/arch/index.md @@ -8,7 +8,10 @@ Here I am sharing my Arch Linux system files, and also what code I will add imme ```sh # /etc/profile -sudo rmmod pcspkr # Remove annoying beep sound in tty +if lsmod | grep -wq "pcspkr"; then + sudo rmmod pcspkr # Remove annoying beep sound in tty +fi + if [[ $TTY == /dev/tty1 ]]; then Hyprland # For no display manager fi