Skip to content

Commit 79e99a0

Browse files
committed
added pipewire
1 parent 0e6491c commit 79e99a0

16 files changed

+106
-6
lines changed

CHANGELOGS.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelogs
22

3+
## 01 Dec 2023
4+
- Added pipewire to install
5+
36
## 30 Nov 2023
47
- switched to swaylock-effects-git as non-git does not seem to work
58

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232

3333
## 🪧🪧🪧 ANNOUNCEMENT 🪧🪧🪧
3434
- This Repo does not contain Hyprland Dots or configs! Dotfiles can be checked here [`Hyprland-Dots`](https://github.com/JaKooLit/Hyprland-Dots) . During installation, if you opt to copy installation, it will be downloaded from that centralized repo.
35+
- Hyprland-Dots use are constantly evolving / improving. you can check CHANGELOGS here [`Hyprland-Dots-Changelogs`](https://github.com/JaKooLit/Hyprland-Dots/wiki/7.-CHANGELOGS)
3536

36-
### 🆕 What's new with v2?
37-
- Rofi, Pywal Colors and Moved to Kitty. (Previous config was foot as tty and wofi as app launcher)
38-
Check out changelogs here [`Hyprland-Dots-Changelogs`](https://github.com/JaKooLit/Hyprland-Dots/wiki/CHANGELOGS)
37+
### 🔘 Pipewire and Pipewire audio
38+
- This script will install pipewire and will also disable or will uninstall pulseaudio. If you dont want it, you can simply just delete pipewire.sh in install-scripts folder before installing.
3939

4040
### ✨ Costumize the packages to be installed
4141
- inside the install-scripts folder, you can edit 00-hypr-pkgs.sh. Care though as the Hyprland Dots may not work properly!
@@ -44,7 +44,6 @@ Check out changelogs here [`Hyprland-Dots-Changelogs`](https://github.com/JaKooL
4444
### 👀 NVidia GPU Owners.
4545
- By default, nvidia-dkms will be installed. and only supports GTX 900 and newer. If required to install older driver, edit the nvidia.sh in scripts-folder
4646

47-
4847
### ✨ to run
4948
> clone this repo by using git. Change directory, make executable and run the script
5049
```bash
@@ -67,8 +66,7 @@ source ~/.zshrc
6766
### ✨ TO DO once installation done and dotfiles copied
6867
- if you opted to install gtk themes, to apply the theme and icon, press the dark/light button (beside the padlock). To apply Bibata modern ice cursor, launch nwg-look (GTK Settings) through rofi.
6968
- SUPER H for HINT or click on the waybar HINT! Button
70-
- Head over to [FAQ](https://github.com/JaKooLit/Hyprland-Dots/wiki/FAQ) and [TIPS](https://github.com/JaKooLit/Hyprland-Dots/wiki/TIPS)
71-
69+
- Head over to [FAQ](https://github.com/JaKooLit/Hyprland-Dots/wiki/4.-FAQ) and [TIPS](https://github.com/JaKooLit/Hyprland-Dots/wiki/5.-TIPS)
7270

7371

7472
### 🛣️ Roadmap:

install-scripts/bluetooth.sh

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ bluez-utils
66
blueman
77
)
88

9+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
10+
911
# Set some colors for output messages
1012
OK="$(tput setaf 2)[OK]$(tput sgr0)"
1113
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install-scripts/dotfiles.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
35
# Set some colors for output messages
46
OK="$(tput setaf 2)[OK]$(tput sgr0)"
57
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install-scripts/gtk_themes.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
35
# Determine the directory where the script is located
46
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
57

install-scripts/hyprland.sh

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ hypr=(
44
hyprland-git
55
)
66

7+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
8+
79
# Set some colors for output messages
810
OK="$(tput setaf 2)[OK]$(tput sgr0)"
911
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install-scripts/nvidia.sh

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ nvidia_pkg=(
88
libva-nvidia-driver-git
99
)
1010

11+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
12+
1113
# Set some colors for output messages
1214
OK="$(tput setaf 2)[OK]$(tput sgr0)"
1315
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install-scripts/paru.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
35
# Set some colors for output messages
46
OK="$(tput setaf 2)[OK]$(tput sgr0)"
57
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install-scripts/pipewire.sh

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#!/bin/bash
2+
3+
pipewire=(
4+
pipewire
5+
wireplumber
6+
pipewire-audio
7+
pipewire-alsa
8+
pipewire-pulse
9+
)
10+
11+
############## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##############
12+
# Set some colors for output messages
13+
OK=$(tput setaf 2)[OK]$(tput sgr0)
14+
ERROR=$(tput setaf 1)[ERROR]$(tput sgr0)
15+
NOTE=$(tput setaf 3)[NOTE]$(tput sgr0)
16+
WARN=$(tput setaf 166)[WARN]$(tput sgr0)
17+
CAT=$(tput setaf 6)[ACTION]$(tput sgr0)
18+
ORANGE=$(tput setaf 166)
19+
YELLOW=$(tput setaf 3)
20+
RESET=$(tput sgr0)
21+
22+
# Set the name of the log file to include the current date and time
23+
LOG="install-$(date +%d-%H%M%S)_bluetooth.log"
24+
25+
ISAUR=$(command -v yay || command -v paru)
26+
27+
# Set the script to exit on error
28+
set -e
29+
30+
# Function for installing packages
31+
install_package() {
32+
# Checking if the package is already installed
33+
if $ISAUR -Q "$1" &>>/dev/null; then
34+
echo -e "${OK} $1 is already installed. Skipping..."
35+
else
36+
# Package not installed
37+
echo -e "${NOTE} Installing $1 ..."
38+
$ISAUR -S --noconfirm "$1" 2>&1 | tee -a "$LOG"
39+
# Making sure the package is installed
40+
if $ISAUR -Q "$1" &>>/dev/null; then
41+
echo -e "\e[1A\e[K${OK} $1 was installed."
42+
else
43+
# Something is missing, exiting to review the log
44+
echo -e "\e[1A\e[K${ERROR} $1 failed to install. Please check the install.log. You may need to install manually! Sorry I have tried :("
45+
exit 1
46+
fi
47+
fi
48+
}
49+
50+
# Removal of pulseaudio
51+
printf "${YELLOW}Removing pulseaudio stuff...${RESET}\n"
52+
for pulseaudio in pulseaudio pulseaudio-alsa pulseaudio-bluetooth; do
53+
sudo pacman -R --noconfirm "$pulseaudio" 2>/dev/null | tee -a "$LOG" || true
54+
done
55+
56+
# Disabling pulseaudio to avoid conflicts
57+
systemctl --user disable --now pulseaudio.socket pulseaudio.service 2>&1 | tee -a "$LOG"
58+
59+
# Pipewire
60+
printf "${NOTE} Installing Pipewire Packages...\n"
61+
for PIPEWIRE in "${pipewire[@]}"; do
62+
install_package "$PIPEWIRE" 2>&1 | tee -a "$LOG"
63+
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $PIPEWIRE install had failed. Please check the install.log"; exit 1; }
64+
done
65+
66+
printf "Activating Pipewire Services...\n"
67+
systemctl --user enable --now pipewire.socket pipewire-pulse.socket wireplumber.service 2>&1 | tee -a "$LOG"
68+
systemctl --user enable --now pipewire.service 2>&1 | tee -a "$LOG"
69+
70+
clear

install-scripts/rog.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
5+
36
# Determine the directory where the script is located
47
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
58

install-scripts/sddm.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
35
# Determine the directory where the script is located
46
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
57

install-scripts/thunar.sh

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ffmpegthumbnailer
88
thunar-archive-plugin
99
)
1010

11+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
1112

1213
# Determine the directory where the script is located
1314
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

install-scripts/xdph.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
5+
36
# Set some colors for output messages
47
OK="$(tput setaf 2)[OK]$(tput sgr0)"
58
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install-scripts/yay.sh

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
5+
36
# Set some colors for output messages
47
OK="$(tput setaf 2)[OK]$(tput sgr0)"
58
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install-scripts/zsh.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
4+
35
# Set some colors for output messages
46
OK="$(tput setaf 2)[OK]$(tput sgr0)"
57
ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)"

install.sh

+3
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ fi
154154
# Install hyprland packages
155155
execute_script "00-hypr-pkgs.sh"
156156

157+
# Install pipewire and pipewire-audio
158+
execute_script "pipewire.sh"
159+
157160
if [ "$nvidia" == "Y" ]; then
158161
execute_script "nvidia.sh"
159162
fi

0 commit comments

Comments
 (0)