From 617a84a5ee19388d579f627f56ab3cd70be68fd9 Mon Sep 17 00:00:00 2001 From: night0721 Date: Sat, 11 Nov 2023 13:01:53 +0000 Subject: [PATCH] add if statement in /etc/profile --- content/posts/arch/index.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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