Previous: Network configuration
References:
Let us replace the console terminal by a nice graphical terminal.
Install a composer for wayland
sudo pacman -S hyprland
For desktop functionality, see
Install
sudo pacman -S xdg-desktop-portal-hyprland
Install an application launcher
sudo pacman -S bemenu-wayland
Install a graphical terminal
sudo pacman -S alacritty
Install basic fonts
sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji noto-fonts-extra ttf-noto-nerd
Execute
start-hyprland
The first time you run hyprland, a default config file will be created in the user directory. Exit hyprland with super-m. Then edit the file with
nano ~/.config/hypr/hyprland.conf
In the above file, find the following lines and edit them:
autogenerated = 0 # remove this line to remove the warning
$terminal = alacritty
$fileManager = pcmanfm
$menu = bemenu-run --fn Noto\ Sans\ Mono\ 14
rounding = 0
Execute start-hyprland again. Now you can open a terminal with super-q and exit hyprland with super-m. To open the command launcher, hit super-r and enter a command, for example, alacritty (and press enter).
Finally, set some basic options for alacritty.
Create a config file with
mkdir -p ~/.config/alacritty
nano ~/.config/alacritty/alacritty.toml
Add
[env]
TERM = "xterm-256color"
[font.bold]
family = "Noto Sans Mono"
style = "Bold"
[font.bold_italic]
family = "Noto Sans Mono"
style = "Bold Italic"
[font.italic]
family = "Noto Sans Mono"
style = "Italic"
[font.normal]
family = "Noto Sans Mono"
style = "Regular"
[font]
size = 14.0
[keyboard]
bindings = [
{ key = "F11", action = "ToggleFullscreen" }
]
In summary, to open a graphical terminal do the following:
start-hyprlandsuper-q to open alacritty
F11 to toggle fullscreen modectrl-+, ctrl--, ctrl-0 to increase, decrease, reset font sizecrtl-d to close alacrittysuper-m to quit hyprland.For further configuration, see hyprland, alacritty and bemenu.
Next: Install firefox