Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# hyprland
collection of dot config files for hyprland with a simple install script for a fresh Arch linux with yay

You can grab the config files and install packages by hand with this commnad
```
Collection of dot config files for [`hyprland`](https://hyprland.org/) with a simple install script for a fresh Arch Linux with [`yay` (or whatever AUR helper you have)](https://wiki.archlinux.org/title/AUR_helpers).

You can grab the config files and install packages by hand with this command:

```sh
yay -S hyprland-bin kitty waybar-hyprland \
swaybg swaylock-effects wofi wlogout mako thunar \
ttf-jetbrains-mono-nerd noto-fonts-emoji \
Expand Down
27 changes: 17 additions & 10 deletions set-hypr
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,23 @@
# dracula-icons-git" set of icons to go with the Dracula theme
# xdg-desktop-portal-hyprland: xdg-desktop-portal backend for hyprland

#### Check for yay ####
ISYAY=/sbin/yay
if [ -f "$ISYAY" ]; then
echo -e "yay was located, moving on.\n"
yay -Suy
else
echo -e "yay was not located, please install yay. Exiting script.\n"
exit
#### Check for AUR helper and do system update ####
get_helper() {
for helper in aurman pacaur pakku paru pikaur trizen yay; do
if command -v "$helper" &>/dev/null; then
echo "$helper"
return
fi
done
}
helper=$(get_helper)
if [ -z "$helper" ]; then
echo "No AUR helper found. Exiting."
exit 1
fi

"$helper" -Syu

### Disable wifi powersave mode ###
read -n1 -rep 'Would you like to disable wifi powersave? (y,n)' WIFI
if [[ $WIFI == "Y" || $WIFI == "y" ]]; then
Expand All @@ -59,7 +66,7 @@ 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 -S --noconfirm hyprland kitty waybar \
"$helper" -S --noconfirm hyprland kitty waybar \
swaybg swaylock-effects wofi wlogout mako thunar \
ttf-jetbrains-mono-nerd noto-fonts-emoji \
polkit-gnome python-requests starship \
Expand All @@ -74,7 +81,7 @@ if [[ $INST == "Y" || $INST == "y" ]]; then

# Clean out other portals
echo -e "Cleaning out conflicting xdg portals...\n"
yay -R --noconfirm xdg-desktop-portal-gnome xdg-desktop-portal-gtk
"$helper" -R --noconfirm xdg-desktop-portal-gnome xdg-desktop-portal-gtk
fi

### Copy Config Files ###
Expand Down