Part #3: Graphics with Hyprland
-  
- Léo Mercier @Sawangg
Hi there! If you managed to follow this guide up until now, you’re one of a kind! For now, you’re system is blind and deaf, and at the end of this post, you’ll only be deaf because we’re tackling having a graphical interface today!
Wayland is a communication protocol that replaces our old friend Xorg and Hyprland is an awesome tiling Wayland compositor I’ve been using for the past 6 months and I’ve felt in love with it. It’s highly customisable and doesn’t compromise on its looks. It’s still a relatively new project so expect a few bugs here and there but I only have high praise for it. If you’ve followed my two previous posts, you can go right ahead. If not, I invite you to go back and come here once you’re ready.
Install Hyprland
You can install the full suite of the hyprland ecosystem by running
doas pacman -S hyprland hypridle hyprlock hyprpaper hyprpickerIf you want to automatically run Hyprland once you login, add the Hyprland command to your .bash_profile
# Start Hyprland if there is no process called Hyprland
if ! pgrep -x "Hyprland" > /dev/null; then
  Hyprland
fiTerminal emulator
Hyprland is configured with kitty as the default terminal emulator. I switched to foot because it is as simple as it
get for terminal emulators under Wayland. Install it by running
doas pacman -S footYou also need to update the Hyprland config located in ~/.config/hypr/hyprland.conf and replace kitty with foot in the terminal configuration.
SSH
Because this is a custom terminal on your machine, this sets the terminal env to foot. But you’ll want to use the default terminal on all of your SSH hosts because foot probably won’t be installed. Add the following to your ~/.ssh/config
Host *
SetEnv TERM=xterm-256colorClipboard support
To be able to handle copy and paste access for certain applications, we’re going to add the package wl-clipboard
doas pacman -S wl-clipboardPortal support
Portal are kind of magical and handle stuff like screen sharing and more. To install the Hyprland implementation run
doas pacman -S xdg-desktop-portal-hyprlandScreenshot
Screenshoting can be achieved using two packages called grim and slurp.
doas pacman -S grim slurpNow we can create a bind in our Hyprland config. Don’t forget the wl-clipboard support we added previously
bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copyExit your current session and login. You should have the Hyprland desktop on your screen. You can then press WIN+Q to open up a terminal.
Run this command to check your hyprland version.
hyprctl versionCongrats, you now have a good looking Wayland desktop environment, you’re in the future! Feel free to go through the Hyprland Wiki and configure it as you please. In the next post and probably the last of this guide, I’ll show you how to configure your sound properly in Artix. See you soon!