dotfiles/hypr/hyprland.conf
2025-06-14 17:17:10 -05:00

264 lines
8.4 KiB
Plaintext

monitor=,1360x768,auto,1,bitdepth,8
monitor=,preferred,auto,1,mirror,eDP-1,bitdepth,8
xwayland {
force_zero_scaling = true
}
# apps
$terminal = ghostty
$browser = firefox
$fileManager = $terminal --command="lf"
$passwordManager = /usr/bin/keepassxc
# yes I have Discord virtualised, don't judge me
$discord = /home/yu/.local/bin/distrobox-enter -n pkg -- /usr/bin/discord
# menus and scripts
$emojipicker = ~/.config/wofi/scripts/emojis.sh
$menu = ~/scripts/menu
$powermenu = ~/.config/wofi/scripts/power.sh
exec-once = $terminal
exec-once = pipewire & wireplumber & pipewire-pulse
exec-once = waybar & hyprpaper
exec-once = [ ! -s ~/.config/mpd/pid ] && mpd
exec-once = hyprctl dispatch exec playerctl start
exec-once = playerctld daemon
exec-once = dunst -conf .config/dunst/dunstrc
exec-once = wl-paste --watch cliphist store
exec-once = hypridle
exec-once = hyprctl setcursor Makise-Kurisu-Cursor 24
exec-once = hyprctl hyprpaper reload ,~/Pictures/wallpaper/2246.png # default
env = HYPRCURSOR_THEME,Makise-Kurisu-Cursor
env = HYPRCURSOR_SIZE,24
# fix flickering cursor
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
debug {
disable_logs = false
damage_tracking = 0
}
cursor {
inactive_timeout = 0
no_hardware_cursors = true
}
render {
explicit_sync = 2
explicit_sync_kms = 2
}
opengl {
nvidia_anti_flicker = 0
}
# end fix
general {
gaps_in = 6
gaps_out = 12
border_size = 2
col.active_border = rgba(66ccffee) rgba(99ffccff) 45deg
col.inactive_border = rgba(444444aa)
resize_on_border = false
allow_tearing = true
layout = master
}
decoration {
rounding = 12
active_opacity = 0.95;
inactive_opacity = 0.8;
blur {
enabled = true
xray = false # Disable for softer edges (xray can look harsh)
special = true # Apply blur to "special" layers (dialogs, etc.)
new_optimizations = true # Keep this for performance
size = 10 # Slightly smaller for smoother performance
passes = 3 # Fewer passes = less GPU load (but still creamy)
brightness = 0.9 # Slightly dim to reduce glare
noise = 0.02 # Subtle grain for "film-like" texture
contrast = 1.1 # Slight boost for vibrancy
popups = true # Blur popups (essential for Aero)
popups_ignorealpha = 0.5 # Softer popup transparency
# Add these experimental tweaks:
vibrancy = 0.2 # If supported (enhances colors under blur)
vibrancy_darkness = 0.1 # Prevents oversaturation
}
# Shadow
shadow {
enabled = true
ignore_window = true
range = 12
offset = 0 2
render_power = 3
color = rgba(100, 180, 255, 0.6)
}
# Dim
dim_inactive = false
dim_strength = 0.1
dim_special = 0
}
animations {
enabled = yes
bezier = linear, 0, 0, 1, 1
bezier = aero_gentle, 0.25, 0.1, 0.25, 1.0
bezier = aero_bounce, 0.5, 1.5, 0.5, 0.9
bezier = aero_snap, 0.4, 0, 0.2, 1
bezier = aero_menu, 0.1, 1, 0, 1
animation = windows, 1, 3, aero_bounce, popin 70%
#this crap breaks slurp do not use it
#animation = windowsIn, 1, 3, aero_gentle, slideup 30%
#animation = windowsOut, 1, 3, aero_snap, slidedown 30%
animation = border, 1, 5, linear
#animation = layersIn, 1, 3, aero_gentle, slideup 20%
#animation = layersOut, 1, 2, aero_snap, slidedown 20%
animation = fadeLayersIn, 1, 2, aero_gentle
animation = fadeLayersOut, 1, 1, aero_snap
animation = workspaces, 1, 5, aero_menu, slidefadevert 15%
animation = specialWorkspace, 1, 4, aero_bounce, slidevert
animation = fade, 1, 3, aero_gentle
animation = borderangle, 1, 10, linear, loop
}
master {
new_status = master
}
misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
vfr = 0
enable_swallow = true
swallow_regex = (allacritty|Alacritty|ghostty|Ghostty)
}
input {
kb_layout = us
kb_variant = altgr-intl
kb_options = deadkeys
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
}
}
gestures {
workspace_swipe = false # this can be fun if I used a laptop
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
# idk???
device {
name = epic-mouse-v1
sensitivity = -0.5
}
# ==== Essentials ====
$mainMod = SUPER
bind = $mainMod, RETURN, exec, $terminal # Enter to launch terminal (intuitive)
bind = $mainMod, Q, killactive # Q = "Quit window" (mnemonic)
bind = $mainMod SHIFT, Q, exec, $powermenu # Shift+Q for power menu
bind = $mainMod, SPACE, exec, $menu # Spacebar for app launcher (like Spotlight)
# ==== Apps ====
bind = $mainMod, E, exec, $fileManager # E = Explorer
bind = $mainMod, D, exec, $discord # D = Discord
bind = $mainMod, P, exec, $passwordManager # P = Password manager
bind = $mainMod, X, exec, $emojipicker # X = eXpression (emoji)
bind = $mainMod SHIFT, B, exec, kill $(pidof waybar) || waybar # toggle waybar, reloads waybar
# ==== Window Management ====
bind = CONTROL, TAB, workspace, previous # Normie feature
bind = $mainMod, F, fullscreen, 1 # F = Fullscreen
bind = $mainMod SHIFT, F, fullscreen, 0 # Shift+F = Fake fullscreen
bind = $mainMod, V, togglefloating # V = "levitate" window
bind = $mainMod SHIFT, M, exit # M = "Murder" Hyprland (emergency)
bind = $mainMod, i, centerwindow # C = Center window (new!)
# ==== Navigation ====
bind = $mainMod, J, layoutmsg, cyclenext noloop
bind = $mainMod, K, layoutmsg, cycleprev noloop
bind = $mainMod, Y, layoutmsg, toggledwindle
bind = $mainMod, T, togglegroup
bind = $mainMod, O, layoutmsg, focusmaster
bind = $mainMod SHIFT, O, layoutmsg, swapwithmaster
# ==== Workspaces ====
bind = $mainMod, 1-9, workspace, 1-9 # Numbers for workspaces
bind = $mainMod, 0, workspace, 10
bind = $mainMod SHIFT, 1-9, movetoworkspace, 1-9 # Shift to move windows
bind = $mainMod SHIFT, 0, movetoworkspace, 10
bind = $mainMod, mouse_down, workspace, e+1 # Scroll workspaces
bind = $mainMod, mouse_up, workspace, e-1
# ==== Media/System ====
bind = , XF86AudioPlay, exec, playerctl play-pause
bind = , XF86AudioNext, exec, playerctl next
bind = , XF86AudioPrev, exec, playerctl previous
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+
bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = , XF86MonBrightnessUp, exec, brightnessctl s +10%
bindel = , XF86MonBrightnessDown, exec, brightnessctl s 10%-
# ==== Screenshots ====
bind = , PRINT, exec, grim -g "$(slurp)" - | wl-copy # Area → clipboard
bind = $mainMod, U, exec, grim - | wl-copy # Fullscreen → clipboard
bind = $mainMod SHIFT, U, exec, sh ~/scripts/upload # this is epic uploader to my selfhosted site
# ==== Utilities ====
bind = $mainMod, R, exec, hyprctl reload # R = Reload config
bind = $mainMod, S, togglespecialworkspace, magic # S = Scratchpad
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
bind = $mainMod, W, exec, ~/.config/hypr/scripts/wallpaper.sh # W = Wallpaper cycler
# ==== Mouse Controls ====
bindm = $mainMod, mouse:272, movewindow # Left-click drag to move
bindm = $mainMod, mouse:273, resizewindow # Right-click drag to resize
# ==== 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 = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
windowrule = suppressevent maximize, class:.*
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0