-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacbook.sh
More file actions
38 lines (31 loc) · 764 Bytes
/
Copy pathmacbook.sh
File metadata and controls
38 lines (31 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
# set -eu
function main() {
echo "==> Install drivers."
sudo pacman --sync --noconfirm broadcom-wl-dkms &> /dev/null
sudo modprobe wl &> /dev/null
# Connect to wifi:
# ================
# nmcli device wifi list
# sudo nmcli device wifi connect YourSSID password YourPassword
# ip a
# curl ifconfig.co
sudo pacman --sync --noconfirm --needed \
pipewire \
pipewire-alsa \
pipewire-pulse \
wireplumber \
alsa-utils \
pamixer \
playerctl \
pavucontrol \
&> /dev/null
echo "==> Enable services."
systemctl --user enable --now pipewire pipewire-pulse wireplumber &> /dev/null
# Test sound:
# ===========
# pactl info
# pactl list short sinks
# speaker-test -c 2
}
main "$@"