Skip to content

Commit

Permalink
Removed -a option
Browse files Browse the repository at this point in the history
  • Loading branch information
t0fik committed Nov 18, 2024
1 parent 0f872ff commit 4440135
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions install/fedora-ostree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ fi
# Don't continue script if any error occurs.
set -e

function yes_or_no {
local yn
while true; do
read -r -p "$* [y/n]: " yn
case $yn in
[Yy]*) choice="Y" ; return 0 ;;
[Nn]*) choice="n" ; return 0 ;;
esac
done
}
# Check fedora version
source /etc/os-release

Expand Down Expand Up @@ -51,8 +61,19 @@ rpm-ostree install --allow-inactive $fm $editor $browser nwg-shell
echo "Apply changes live to make nwg-shell-installer available"
sudo rpm-ostree apply-live

echo "Installing initial configuration"
# Version in fedora does not support -w flag, so, implemented workaround
echo y | nwg-shell-installer -a
echo "Starting from v0.5.0, nwg-shell supports Hyprland Wayland compositor."

echo
yes_or_no "Install Hyprland?"

if [ "$choice" == "Y" ] ; then
echo "Installing Hyprland"
dnf install -y hyprland wlr-randr
echo Installing initial configuration
nwg-shell-installer -w -hypr
else
echo Installing initial configuration
nwg-shell-installer -w
fi

xdg-user-dirs-update

0 comments on commit 4440135

Please sign in to comment.