Hyprland Configuration Structure
Here's a well-organized structure for a nice-looking Hyprland configuration with Waybar and Wofi:
~/.config/
├── hypr/
│ ├── hyprland.conf # Main configuration
│ ├── monitors.conf # Monitor setup
│ ├── windowrules.conf # Window rules
│ ├── keybinds.conf # Keybindings
│ ├── startup.conf # Autostart applications
│ ├── env.conf # Environment variables
│ └── themes/
│ ├── colors.conf # Color scheme
│ └── style.conf # General styling
├── waybar/
│ ├── config # Waybar configuration
│ └── style.css # Waybar styling
├── wofi/
│ ├── config # Wofi configuration
│ └── style.css # Wofi styling
└── scripts/ # Helper scripts
├── wallpaper.sh # Wallpaper management
├── lockscreen.sh # Lockscreen
└── notifications.sh # Notification daemon
File Contents
1. Hyprland Configuration
~/.config/hypr/hyprland.conf:
# Main configuration
source = ~/.config/hypr/monitors.conf
source = ~/.config/hypr/windowrules.conf
source = ~/.config/hypr/keybinds.conf
source = ~/.config/hypr/startup.conf
source = ~/.config/hypr/env.conf
source = ~/.config/hypr/themes/colors.conf
source = ~/.config/hypr/themes/style.conf
# Input settings
input {
kb_layout = us
follow_mouse = 1
sensitivity = 0
}
~/.config/hypr/themes/colors.conf:
# Color scheme
$color0 = rgb(1a1a1a)
$color1 = rgb(ff5555)
$color2 = rgb(50fa7b)
$color3 = rgb(f1fa8c)
$color4 = rgb(bd93f9)
$color5 = rgb(ff79c6)
$color6 = rgb(8be9fd)
$color7 = rgb(bbbbbb)
$color8 = rgb(44475a)
$color9 = rgb(ff5555)
$color10 = rgb(50fa7b)
$color11 = rgb(f1fa8c)
$color12 = rgb(bd93f9)
$color13 = rgb(ff79c6)
$color14 = rgb(8be9fd)
$color15 = rgb(ffffff)
~/.config/hypr/themes/style.conf:
# General styling
general {
gaps_in = 5
gaps_out = 10
border_size = 2
col.active_border = $color4 $color6 45deg
col.inactive_border = $color8
layout = dwindle
}
decoration {
rounding = 5
blur = yes
blur_size = 3
blur_passes = 1
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
}
animations {
enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
2. Waybar Configuration
~/.config/waybar/config:
{
"layer": "top",
"position": "top",
"height": 30,
"spacing": 4,
"modules-left": ["hyprland/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "temperature", "battery", "tray"],
"hyprland/workspaces": {
"format": "{name}",
"on-click": "activate"
},
"clock": {
"format": "{:%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-muted": "🔇",
"format-icons": ["🔈", "🔉", "🔊"],
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
}
}
~/.config/waybar/style.css:
* {
border: none;
border-radius: 0;
font-family: "Fira Code", "Font Awesome 6 Free";
font-size: 13px;
min-height: 0;
}
window#waybar {
background: rgba(26, 26, 26, 0.9);
color: #bbbbbb;
}
#workspaces button {
padding: 0 5px;
background: transparent;
color: #bbbbbb;
border-bottom: 3px solid transparent;
}
#workspaces button.focused {
background: #44475a;
border-bottom: 3px solid #bd93f9;
}
#workspaces button.urgent {
color: #ff5555;
}
#clock, #battery, #cpu, #memory, #network, #pulseaudio, #tray {
padding: 0 10px;
margin: 0 5px;
}
#clock {
background-color: #44475a;
border-radius: 5px;
}
#battery {
color: #50fa7b;
}
#battery.charging {
color: #50fa7b;
}
#battery.warning:not(.charging) {
color: #ff5555;
}
3. Wofi Configuration
~/.config/wofi/config:
width=600
height=400
show=run
prompt=Search...
filter_rate=100
allow_markup=true
no_actions=true
halign=fill
orientation=vertical
content_halign=fill
insensitive=true
~/.config/wofi/style.css:
window {
margin: 0px;
border: 2px solid #bd93f9;
background-color: #1a1a1a;
border-radius: 5px;
}
#input {
margin: 5px;
border: none;
color: #f8f8f2;
background-color: #44475a;
}
#inner-box {
margin: 5px;
border: none;
background-color: #1a1a1a;
}
#outer-box {
margin: 5px;
border: none;
background-color: #1a1a1a;
}
#scroll {
margin: 0px;
border: none;
}
#text {
margin: 5px;
border: none;
color: #f8f8f2;
}
#entry:selected {
background-color: #44475a;
}
4. Example Keybinds
~/.config/hypr/keybinds.conf:
# Basics
$mainMod = SUPER
# Applications
bind = $mainMod, RETURN, exec, alacritty
bind = $mainMod, D, exec, wofi --show drun
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, M, exit,
bind = $mainMod, E, exec, thunar
# Screenshot
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy
bind = $mainMod, Print, exec, grim - | wl-copy
# Window management
bind = $mainMod, F, fullscreen,
bind = $mainMod, V, togglefloating,
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
# Move focus
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Workspaces
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $