Skip to content

[help/question] What packages do you install on your base install of Arch for a pure Wayland WM?

I just installed Arch in a VM and since I'm looking to install it on a workstation with an AMD GPU, I want to go full on with Wayland (preferably without XWayland). I'm thinking of going with Sway but I have no idea what packages I need. Heck, I don't even know what components I need (like a clipboard manager, application launcher etc) for a complete desktop environment/WM.

Packages I install on my base system:

base base-devel cmatrix curl dhcpcd efibootmgr ffmpeg fish git grub htop iotop iperf less linux-firmware linux-lts man nano neofetch nload openssh os-prober pacman-contrib reflector rsync sudo unzip vim wget zsh

Packages I installed after installation of Arch:

wayland sway swaylock swayidle dmenu terminal xorg-server-xwayland sddm (xorg-server-xwayland as dmenu doesn't work without it; this is what I intend to prevent - that is, if possible without much hassle)

Asking for help in terms of "What do/would you have installed?" and not "Point me to a wiki or an article". TIA!

15 points28 comments
Open on Reddit
About this post
Posted
Archived
Score
15 · 86% up
Kind
Text
ID
nm6j9b

Author

12
posts
21
comments
3
media
View profile

31 comments

The definition of "complete" is entirely up to you.

10 points

The definition of "complete" is entirely up to you.

I have no idea about "complete" either. I'm guessing everything "necessary" like a clipboard manager, login manager etc for daily usage?

That is why I asked, what do you have installed? :')

As I have no idea, I would like to see what others you have and improve my setup.

1 points

I don't use a clipboard manager, so it's not necessary for me.

4 points
unknown author

Deleted before we saved it.

1 points

I use gnome with wayland. Kitty for term. Firefox nightly. Use the system electron AUR to be able to run things like slack and discord with wayland. wl-clipboard-git.

I still have xwayland running but I don't think anything is using it.

3 points

What package are you using exactly to run discord without Xwayland?

1 points

I originally installed electron 12.0.2 from aur but I see there's 12.0.9 and 13.0.1 packages now. iirc they added wayland support to electron with 12.0

I start discord via Exec=/usr/bin/electron /usr/lib/discord/app.asar

I didn't get vaapi hardware decode from it tho, so I just use firefox for discord.

1 points

wofi or wmenu(ig thats the name)...also sway's github page has some good suggestions for Wayland apps

2 points

also , try kitty as terminal , u will love the image preview

2 points

The font handling sold me. I use cascadia code with ligatures and source all of the nerd font symbols from another font (nerd symbols) so I can have all of the weights, styles, italics, ligatures and symbols with extremely little effort.

1 points

This is my base installation.
I'm a Flatpak fan so I moved a lot of packages into Flatpaks with the idea of decoupling all GUI apps and some of the CLI utils from the base OS installation.
Also, I'm making good use of chroots, Podman, LXD (just starting), QEMU, and even working directly in Flatpak sandboxes, and this can help avoid having development tools installed directly in the base OS.
Things that I have in Flatpaks that you probably want to add to this list of packages are Waybar, Swappy, mpvpaper, maybe xorg-xeyes, freerdp, ffmpeg, mpv, and I'm probably forgetting some others.

Ignore everything that starts with my/uosys-mods-.
Also, everything that starts with my/ is personal packages, you can replace them with the original upstream packages.
For reference: flatpaks, pkgbuilds.

edit: p.s. Note that I prefer having packages installed explicitly for documentation purposes and not having to figure out later what package that I use not available in a clean install due to a change in a depends array of a package.

2 points

I'm a fan of flatpacks as well, but didn't think of this. Thanks for the tip!

1 points

Flatpaks are great! I forgot to mention that I also have noto-fonts packages installed as Flatpaks that you might want to add to this list, though I might gonna switch back when all these fonts will be available as much compact variable fonts.
And I also forgot to mention spice-vdagent which is one of the most important packages missing from my list if you care about running the OS in a VM. It's not there because I was considering to convert this to Wayland but I might just be lazy and add it as it is, with its libxinerama and libxrandr depends.

1 points

Could you take a look at my question https://redd.it/nv4tzx you might have some good ideas as it sounds like you're doing something similar.

1 points

There are good suggestions there but my recommendation is to go with a solution that is actually maintainable, at least that you believe you would be able to keep up to date without wasting too much of your time.

It should be preferable that this will be free, zero maintenance needed which why I think going with Flatpak packaged apps and using containers like Docker or Podman should be the first choice.

For Flatpak, for example, I have global overrides that set filesystem access permissions to block access to all my files, and then I can enable access for each app separately.
I can keep these overrides in dotfiles so they are synced between systems.

I went with Flatpak after packaging a good number of apps, confirming that I can get every app I want working as a Flatpak, and that I can package every app that I need or want to try.

I don't want to care about MAC (SELinux, AppArmor), at least not with regards to desktop apps and containers. I expect to get this for free, hopefully someday by Flatpak.

You mentioned that you worried about "malicious program" but what I think you should really need to worry about is how do you actually can trust the system.
Linux distributions have no mechanism in place that will make you trust a running system.
For this, we need to authenticate executable code before running it. In other words, measured boot for the OS and some type of measurement for apps.
You probably will never get this with your Arch Linux installation because the first precondition for this is that the OS will be read-only.
This why I'm now running an immutable system based on Arch Linux where my OS is read-only, and maybe someday I will try to add some type of measurement to it.
I hope to see proper fs-verity support in ostree, like this PR, and similar support in BTRFS.
I expect fs-verity support in ostree will allow authenticating both the OS and Flatpak apps with an example implementation in Fedora Silverblue.

1 points

bemenu or wofi for dmenu replacements, foot/alacrity/kitty for a terminal, chromium as a browser, wl-clipboard for a clipboard, grim can take screenshots, wlr-randr is an xrandr replacement (or kanshi), wbg can set backgrounds and such, wev is a xev replacement...

The hardest part might be finding a mesa build that doesn't include the xorg backend? I haven't looked closely at how Arch packages look on this wayland-only front. You might have to accept having xwayland available, but simply not use it (for chromium you can specify ozone-platform is Wayland, for bemenu you might have to specify the backend, Qt apps would want you to specify the qpa platform, etc).

2 points

Thanks a lot! I'll try this out in my VM now :)

1 points

Remember that a lot of things you might need supplementary programs for might be handled by your compositor, and some things just flat-out won't work on some compositors. For instance, wayfire lets you set resolutions and refresh rates directly or with kanshi, but hikari doesn't implement the right wl-roots protocols for this at all (similarly for things like screen sharing, screenshots, etc).

2 points

I have a pretty sophisticated and long sway config so I usually install a lot of applications but here's the stuff I install for the base system and function (some is in the AUR):

sway rofi xorg-xwayland waybar wayland grimshot autotiling kanshi glfw-wayland kitty light pipewire pipewire-pulse wf-recorder

I recommend rofi over bemenu (dmenu but for wayland), which you can replace with wofi if you don't want Xwayland, since it's much more configurable and has a good set of modes.

Since I'm assuming you're on systemd, I don't actually recommend getting a network manager such as connman or NetworkManager (and their respective tray apps, cmst and nm-applet) and instead, stick to systemd-networkd or whatever systemd's network thing is (I use netifrc myself, for OpenRC), or even just bare wpa_supplicant and dhcpcd. It might take a little bit to setup but will save you some hassle later on.

kanshi should only be necessary if you have a laptop and occasionally plug it into a monitor. Otherwise you don't need it. wf-recorder is also unnecessary unless you'll be recording your desktop. autotiling isn't really necessary either and is just there to make tiling a bit less cancer.

You could also install ydotool or similar if you want, and dunst as a notification daemon.

2 points

Thanks for the elaborated explanation. Couldn't be more thankful to you, good sir! :)

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.