Skip to content

Commit

Permalink
Added desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDoesTech committed Mar 31, 2023
1 parent c70505b commit a4564ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions extras/hyprland.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=Hyprland
Type=Application
6 changes: 4 additions & 2 deletions set-hypr
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,19 @@ more work which is beyond the scope of this script.\n
ISYAY=/sbin/yay
if [ -f "$ISYAY" ]; then
echo -e "yay was located, moving on.\n"
yay -Suy > /dev/null
else
read -n1 -rep 'Yay was NOT located, would you like to install yay (y,n) ' INSTYAY
if [[ $INSTYAY == "Y" || $INSTYAY == "y" ]]; then
git clone https://aur.archlinux.org/yay-git.git
cd yay-git
makepkg -si --noconfirm > /dev/null
cd ..

else
echo -e "Yay is required for this script, now exiting"
exit
fi
yay -Suy > /dev/null
fi

### Disable wifi powersave mode ###
Expand Down Expand Up @@ -136,8 +137,9 @@ if [[ $CFG == "Y" || $CFG == "y" ]]; then
echo -e "Setting up the login screen. \n"
sudo cp -R sdt /usr/share/sddm/themes/
sudo chown -R $USER:$USER /usr/share/sddm/themes/sdt
sudo mkdir /etc/sddm.conf.d
sudo mkdir -p /etc/sddm.conf.d
sudo echo -e "[Theme]\nCurrent=sdt" > /etc/sddm.conf.d/10-theme.conf
sudo cp extra/hyprland.desktop /usr/share/wayland-sessions/
sudo sudo sed -i 's/Exec=Hyprland/Exec=\/home\/'$USER'\/start-hypr/' /usr/share/wayland-sessions/hyprland.desktop
cp extras/start-hypr ~/

Expand Down

0 comments on commit a4564ee

Please sign in to comment.