Of course! Here is a comprehensive and well-structured configuration for a "nice looking" Hyprland setup.
This setup is designed to be:
Modular: Key parts of the configuration are split into separate files for easy management.
Themed: Uses the popular Catppuccin Mocha color scheme for a consistent, modern, and easy-on-the-eyes look.
Functional: Includes essential tools like Waybar for the status bar and Wofi for the application launcher.
Feature-rich: Comes with pre-configured keybindings, scripts for screenshots and wallpapers, and settings for notifications.
Prerequisites
First, you need to install all the necessary packages. The names might vary slightly depending on your Linux distribution (e.g., wofi vs wofi-wayland, polkit-kde-agent vs lxqt-policykit-agent).
bash
# Example for Arch Linux
sudo pacman -S hyprland waybar wofi kitty ttf-jetbrains-mono-nerd \
swww mako grim slurp wl-copy \
papirus-icon-theme catppuccin-gtk-theme-mocha \
polkit-kde-agent dunst # dunst is a good fallback for mako
Hyprland: The window manager itself.
Waybar: A highly customizable Wayland bar.
Wofi: A fast application launcher.
Kitty: A fast, feature-rich, GPU-based terminal emulator (used in this example).
Nerd Font: Essential for icons in Waybar (JetBrains Mono Nerd Font is a great choice).
swww: A modern and efficient wallpaper daemon for Wayland.
mako: A lightweight notification daemon for Wayland.
grim & slurp: Tools for taking screenshots on Wayland.
wl-copy: For copying screenshots to the clipboard.
GTK Theme & Icons: To make your applications look consistent.
Polkit Agent: For handling authentication prompts (e.g., for systemctl or graphical package managers).
Directory Structure
This is the file structure we will create inside your ~/.config/ directory.
This is the main entry point. It's clean and simple, just sourcing all the other files.
ini
# #######################################################################################
# Hyprland Main Configuration File
# #######################################################################################
# This is the main file. It sources all other configuration files.
# For a better organization, files are split into categories.
# Source the theme first, so variables are available globally
source = ~/.config/hypr/conf/theme.conf
# Source other configuration files
source = ~/.config/hypr/conf/monitors.conf
source = ~/.config/hypr/conf/env.conf
source = ~/.config/hypr/conf/autostart.conf
source = ~/.config/hypr/conf/input.conf
source = ~/.config/hypr/conf/keybinds.conf
source = ~/.config/hypr/conf/windowrules.conf
~/.config/hypr/conf/theme.conf
Defines the Catppuccin Mocha theme and all visual settings.
# Find your monitor name with: hyprctl monitors
# Example for a single monitor
monitor=,preferred,auto,1
# Example for dual monitors
# monitor=DP-1,1920x1080@144,0x0,1
# monitor=HDMI-A-1,1920x1080@60,1920x0,1
# Set default workspaces for monitors
# workspace=DP-1,1
# workspace=HDMI-A-1,6
Create these helper scripts and make them executable with chmod +x ~/.config/hypr/scripts/*.sh.
~/.config/hypr/scripts/wallpaper.sh
bash
#!/bin/bash
# A script to set a random wallpaper from a directory
# Directory containing your wallpapers
WALLPAPER_DIR="$HOME/Pictures/Wallpapers"
if [ -d "$WALLPAPER_DIR" ]; then
RANDOM_WALLPAPER=$(find "$WALLPAPER_DIR" -type f | shuf -n 1)
# Use swww to set the wallpaper with a transition
swww img "$RANDOM_WALLPAPER" --transition-type wipe --transition-angle 30 --transition-step 90
else
echo "Wallpaper directory not found: $WALLPAPER_DIR"
fi
~/.config/hypr/scripts/screenshot.sh
bash
#!/bin/bash
# Screenshot script using grim and slurp
SCREENSHOT_DIR="$HOME/Pictures/Screenshots"
mkdir -p "$SCREENSHOT_DIR"
FILENAME="$SCREENSHOT_DIR/$(date +'%Y-%m-%d_%H-%M-%S').png"
case "$1" in
--full)
grim "$FILENAME"
;;
--area)
grim -g "$(slurp)" "$FILENAME"
;;
*)
echo "Usage: $0 [--full | --area]"
exit 1
;;
esac
# Copy to clipboard and send notification
wl-copy < "$FILENAME"
notify-send "Screenshot Taken" "Saved to $FILENAME and copied to clipboard."
Note on Wofi CSS: The easiest way to theme Wofi is to download the mocha.css file from the official Catppuccin for Wofi repository and place it in ~/.config/wofi/.
Just add this snippet to your kitty.conf. It will load the Catppuccin theme.
conf
# Catppuccin Mocha Theme for Kitty
include ./theme.conf
background_opacity 0.9
# Fonts
font_family JetBrains Mono Nerd Font
bold_font auto
italic_font auto
bold_italic_font auto
font_size 11.0
Then, create ~/.config/kitty/theme.conf with the contents from the official Catppuccin for Kitty repository.
Final Steps
Place all files in their respective directories as outlined above.
Create a wallpaper directory at ~/Pictures/Wallpapers and add some images.
Make scripts executable: chmod +x ~/.config/hypr/scripts/*.sh.
Log out and log back into your Hyprland session.
You should now have a beautiful, cohesive, and functional Hyprland desktop! You can easily tweak colors in theme.conf and keybindings in keybinds.conf to make it your own.