add if statement in /etc/profile

This commit is contained in:
night0721 2023-11-11 13:01:53 +00:00
parent 757c192ee2
commit 617a84a5ee

View file

@ -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