hypr
"/home/yossef/notes/git/envir_sys/hypr.md"
path: git/envir_sys/hypr.md
- **fileName**: hypr
- **Created on**: 2025-03-26 17:23:48
Hyprland Config Explained
Appearance
monitor=HDMI-A-1,1920x1080@60,0x0,1
workspace=1,monitor:HDMI-A-1
- monitor: Sets the monitor, resolution, position, and scale.
- workspace: Assigns workspace 1 to HDMI-A-1.
Window Behavior
gaps_in=5
gaps_out=10
border_size=2
- gaps_in: Inner gaps between windows.
- gaps_out: Outer gaps around windows.
- border_size: Window border thickness.
Keybindings
bind=SUPER,Return,exec,kitty
bind=SUPER,Q,killactive
bind=SUPER,F,fullscreen
bind=SUPER,L,movefocus,r
bind=SUPER,H,movefocus,l
bind=SUPER,V,togglefloating
- SUPER + Return: Launches Kitty terminal.
- SUPER + Q: Closes active window.
- SUPER + F: Toggles fullscreen.
- SUPER + L/H: Moves focus right/left.
- SUPER + V: Toggles floating.
Workspaces
bind=SUPER,1,workspace,1
bind=SUPER,2,workspace,2
bind=SUPER,3,workspace,3
bind=SUPER+SHIFT,1,movetoworkspace,1
- SUPER + 1/2/3: Switches to workspace 1/2/3.
- SUPER + Shift + 1: Moves window to workspace 1.
Autostart Programs
exec-once=waybar &
exec-once=dunst &
exec-once=nm-applet &
exec-once=mpd &
- waybar: Starts the bar.
- dunst: Enables notifications.
- nm-applet: Manages network.
- mpd: Starts the music daemon.
Window Rules
windowrule=workspace 2,class:firefox
windowrule=float,title:Spotify
- workspace 2: Always open Firefox on workspace 2.
- float: Forces Spotify to always float.
Animations
animation=windows,1,5,default
animation=fade,1,3,default
- windows: Enables window animations.
- fade: Adds fade-in/out effect.
Performance Tweaks
xwayland=1
force_vsync=0
- xwayland: Enables XWayland for compatibility.
- force_vsync: Disables vsync for better performance.
Additional Shortcuts Explained
- SUPER + R: Reloads Hyprland config without restarting.
- SUPER + P: Launches the application launcher (e.g., Rofi).
- SUPER + Space: Switches keyboard layout.
- SUPER + E: Opens file manager (e.g., Thunar).
- SUPER + T: Opens a new terminal.
- SUPER + Shift + Q: Force kills unresponsive windows.
Advanced Window Management
- SUPER + Mouse Drag: Moves the window.
- SUPER + Right Click: Resizes the window.
- SUPER + Shift + F: Forces a window to stay on top.
- SUPER + G: Toggles gaps (removes or restores window gaps).