-
-
Notifications
You must be signed in to change notification settings - Fork 12
Home
You may set up Arch Linux with sway, Hyprland and nwg-shell from scratch by installing from the nwg-iso.
Or you can just do everything the old way, by following the steps below.
NOTE: this guide does not cover all the Arch Linux installation and post-installation steps. That's why we have the Arch Wiki.
- Download Arch Linux ISO, boot from it.
- Run guided installation with
archinstall
. - Select profile -> Minimal.
- Select audio -> pipewire or pulseaudio.
- Additional packages -> install
wget
. - Configure network -> Use NetworkManager.
- Reboot & and login as the user you created.
- Run the installer script. It will perform further installation steps for you. It will also ask whether to install Hyprland.
NOTE: This script overwrites hyprland.conf
in ~/.config/hypr/
. Use cp ~/.config/hypr/hyprland.conf ~/.config/hypr/hyprland.conf.bac
to make a quick backup if you already have a hyprland config.
wget https://raw.github.com/nwg-piotr/nwg-shell/main/install/arch.sh && chmod u+x arch.sh && ./arch.sh && rm arch.sh
- Reboot. Type
sway
(orHyprland
, if you installed Hyprland support) at the command prompt. You should see the nwg-shell settings window now:
- Check the settings, e.g. your location, keyboard layout, applications. Don't forget to press the "Apply" button, or your text editor, file manager and web browser key bindings won't work.
NOTE: To speed up updates, you may want to install go
and python-wheel
(build dependencies) on your system.
NOTE: You may use whatever AUR helper you like, but the Arch update tray notifier relies on baph by Nate Maia. Baph is cool, anyway.
Installation steps & script by @kuba3351.
Nwg-shell in Fedora is fully packaged in the Copr repository: https://copr.fedorainfracloud.org/coprs/tofik/nwg-shell/
Copr is not official repository, it is similar to AUR in Arch Linux. So, before installing nwg-shell in Fedora, the Copr repo must be enabled in the system. Then, the nwg-shell package should be installed, and then, the nwg-shell-installer -a
should be executed to install necesary configuration files. We provide an automated instalation scripts that will do everything automatically for you.
Fedora will soon introduce an Sway Spin: https://fedoraproject.org/wiki/Changes/Fedora_Sway_Spin.
So, it is recommend to install the Sway Spin if you plan to install nwg-shell. But installing Sway and nwg-shell on another Fedora Spin should also work, but was not tested.
Fedora Sway Spin is not yet released but install images of Rawhide (development version of Fedora 38) are available, and install scripts was tested on it.
- Live ISO images (select Sway version): https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Spins/x86_64/iso
- Fedora Sericea (Sway Spin based on ostree): https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Sericea/x86_64/iso/
- Boot Live installer linked above
- Press Win+d or Win+Enter and type
liveinst
- Follow on screen instructions to install the system
- After installation do a reboot
- After first login, execute the installer script and follow instructions to select default apps
wget https://raw.github.com/nwg-piotr/nwg-shell/main/install/fedora.sh && chmod u+x fedora.sh && ./fedora.sh && rm fedora.sh
- Reboot the system
- Boot the installer linked above
- Follow on screen instructions to install the system
- After installation do a reboot
- After first login, execute the installer script and follow instructions to select default apps
wget https://raw.github.com/nwg-piotr/nwg-shell/main/install/fedora-ostree.sh && chmod u+x fedora-ostree.sh && ./fedora-ostree.sh && rm fedora-ostree.sh
- Reboot the system
nwg-shell and its subprojects are available in Gentoo's user repository GURU.
- Add the GURU to the systems package repositories with
sudo eselect repository enable guru
- Update the local package index
sudo emerge --sync guru
- Install sway or hyprland with
sudo emerge -a gui-wm/sway
/sudo emerge -a gui-wm/hyprland
- If nwg should be installed for hyprland, set the
hyprland
USE-flag for the package gui-apps/nwg. Then install the meta package gui-apps/nwg withsudo emerge -a gui-apps/nwg
. This will pull in all the dependencies of nwg-shell like nwg-panel, nwg-drawer... But be aware the nwg project has more to offer which is not a hard dependency of nwg-shell but can be installed additionally. - Run the nwg installer
nwg-shell-installer -a
to update the configs in the users repository - Reboot the system
Note that gui-apps/nwg can only be installed for sway or hyprland. However, if it is installed for hyprland, it just pulls in gui-apps/nwg-dock-hyprland instead of gui-apps/nwg-dock. If nwg-shell should be used with both, sway and hyprland, do not set the hyprland USE-flag for gui-apps/nwg and install gui-apps/nwg-dock-hyprlandmanually using
sudo emerge -a gui-apps/nwg-dock-hyprland`.
Further information on how to setup sway or hyprland on Gentoo is available in the respective pages in the Gentoo wiki.
- Download the nwg-shell scripts manually or use a TUI tool such as
sbopkg
orsboui
to auto-install deps from SBo. - After building and install, ensure your user account is added to the
video
group, and runxdg-user-dirs-update
. - As
root
run/usr/sbin/pipewire-enable.sh
. - Afterwards, run the nwg-installer script to setup your environment,
nwg-shell-installer -a
. - Execute
sway
to load nwg-shell.
- Download & install slackpkg+ to add custom repositories to the distro.
- Edit
/etc/slackpkg/slackpkgplus.conf
adding this information to the configuration file:MIRRORPLUS['nwg-shell']=https://slackware.lngn.net/pub/x86_64/slackware64-current/nwg-shell/
also ensure you addnwg-shell
to thePKGS_PRIORITY
andREPOPLUS
fields. - Run
slackpkg update && slackpkg install nwg-shell
asroot
. This will install binary packages (you will not have to build anything). - Then follow Steps 2-5 for Slackware 15.0 above.
Work in progress by mac-a-r0ni.
- Nwg-shell is packaged in main repo.
- Also sway and Hyprland.
- By default nwg-shell have sway as part of it's meta-package.
- Installation: run
scratch install nwg-shell
. - Initial configuration : run
nwg-shell-installer -a
. - Session: run
dbus-run-session sway
. - Configure your desktop: run
nwg-config-sway
.
As the updater in its current state does not support optional updates, you need to do it manually.
- Install
hyprland
andwlr-randr
; - Run
nwg-shell-installer -r -hypr
to add missing Hyprland presets.
Run nwg-shell-installer -a [-hypr]
to overwrite all default presets w/ default files (use -hypr
argument to include Hyprland presets).
Remove preset files you want to restore manually, then run nwg-shell-installer -r [-hypr]
.