-
Notifications
You must be signed in to change notification settings - Fork 4
/
hypr.sh
executable file
·39 lines (28 loc) · 1.25 KB
/
hypr.sh
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
39
#!/usr/bin/env bash
set -e
if [[ $USER != parham ]]; then
echo "you are not my master"
exit
fi
# global variable that points to `dotfiles/archinstall` root directory
current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=scripts/lib/message.sh
source "$current_dir/../scripts/lib/message.sh"
# shellcheck source=scripts/lib/require.sh
source "$current_dir/../scripts/lib/require.sh"
# configure makepkg to use tlsv1.3 because we are in iran
cd "$current_dir/.." && ./start.sh pacman
# install yay to have yay for installing from
cd "$current_dir/.." && ./start.sh yay
# install required packages using pacman and yay
cd "$current_dir/.." && ./start.sh env
message "archinstall" "lets use greetd as desktop manager"
require_pacman greetd greetd-tuigreet greetd-agreety
sudo cp "$current_dir/wayland.d/greetd" /etc/pam.d/greetd
sudo cp "$current_dir/wayland.d/config.toml" /etc/greetd/config.toml
message "archinstall" "enable greetd"
sudo systemctl enable greetd.service
message "archinstall" "setup hyper and required softwares"
cd "$current_dir/.." && ./start.sh hyprland
sudo cp "$current_dir/hypr.d/hyprland.sh" /usr/local/bin/hyprland.sh
sudo cp "$current_dir/hypr.d/hyprland.desktop" /usr/share/wayland-sessions/hyprland.desktop