forked from ChrisTitusTech/hyprland-titus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set-hypr.sh
executable file
·78 lines (70 loc) · 2.69 KB
/
set-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
#### Check for yay ####
ISYAY=/sbin/yay
if [ -f "$ISYAY" ]; then
echo -e "$COK - yay was located, moving on."
yay -Suy
else
echo -e "$CWR - Yay was NOT located"
read -n1 -rep $'[\e[1;33mACTION\e[0m] - Would you like to install yay (y,n) ' INSTYAY
if [[ $INSTYAY == "Y" || $INSTYAY == "y" ]]; then
git clone https://aur.archlinux.org/yay-git.git &>> $INSTLOG
cd yay-git
makepkg -si --noconfirm &>> ../$INSTLOG
cd ..
else
echo -e "$CER - Yay is required for this script, now exiting"
exit
fi
fi
### Install all of the above pacakges ####
read -n1 -rep 'Would you like to install the packages? (y,n)' INST
if [[ $INST == "Y" || $INST == "y" ]]; then
yay -R --noconfirm swaylock waybar
yay -S --noconfirm hyprland polkit-gnome ffmpeg neovim viewnior \
rofi pavucontrol thunar starship wl-clipboard wf-recorder \
swaybg grimblast-git ffmpegthumbnailer tumbler playerctl \
noise-suppression-for-voice thunar-archive-plugin kitty \
waybar-hyprland wlogout swaylock-effects sddm-git pamixer \
nwg-look-bin nordic-theme papirus-icon-theme dunst otf-sora \
ttf-nerd-fonts-symbols-common otf-firamono-nerd inter-font \
ttf-fantasque-nerd noto-fonts noto-fonts-emoji ttf-comfortaa \
ttf-jetbrains-mono-nerd ttf-icomoon-feather ttf-iosevka-nerd \
adobe-source-code-pro-fonts
fi
### Copy Config Files ###
read -n1 -rep 'Would you like to copy config files? (y,n)' CFG
if [[ $CFG == "Y" || $CFG == "y" ]]; then
echo -e "Copying config files...\n"
cp -R ./dotconfig/dunst ~/.config/
cp -R ./dotconfig/hypr ~/.config/
cp -R ./dotconfig/kitty ~/.config/
cp -R ./dotconfig/pipewire ~/.config/
cp -R ./dotconfig/rofi ~/.config/
cp -R ./dotconfig/swaylock ~/.config/
cp -R ./dotconfig/waybar ~/.config/
cp -R ./dotconfig/wlogout ~/.config/
# Set some files as exacutable
chmod +x ~/.config/hypr/xdg-portal-hyprland
chmod +x ~/.config/waybar/scripts/waybar-wttr.py
fi
### Enable SDDM Autologin ###
read -n1 -rep 'Would you like to enable SDDM autologin? (y,n)' WIFI
if [[ $WIFI == "Y" || $WIFI == "y" ]]; then
LOC="/etc/sddm.conf"
echo -e "The following has been added to $LOC.\n"
echo -e "[Autologin]\nUser = $(whoami)\nSession=hyprland" | sudo tee -a $LOC
echo -e "\n"
echo -e "Enable SDDM service...\n"
sudo systemctl enable sddm
sleep 3
fi
### Script is done ###
echo -e "Script had completed.\n"
echo -e "You can start Hyprland by typing Hyprland (note the capital H).\n"
read -n1 -rep 'Would you like to start Hyprland now? (y,n)' HYP
if [[ $HYP == "Y" || $HYP == "y" ]]; then
exec Hyprland
else
exit
fi