Files
hyprduma-config/hyprland.conf
T

458 lines
12 KiB
Plaintext
Raw Normal View History

2025-11-09 00:06:10 +04:00
# Our powerful(in progress) Hyprland config file!
# Please read documentation!
2025-11-09 00:06:10 +04:00
# Monitor configuration
monitor = , preferred, auto, 1
2025-11-11 16:28:20 +00:00
# Workspace assignment
2025-11-09 00:06:10 +04:00
workspace = 1, monitor:HDMI-A-1
workspace = 2, monitor:HDMI-A-1
workspace = 3, monitor:HDMI-A-1
workspace = 4, monitor:HDMI-A-1
2025-11-09 00:06:10 +04:00
workspace = 5, monitor:eDP-1
2025-11-11 16:28:20 +00:00
workspace = 6, monitor:eDP-1
workspace = 7, monitor:eDP-1
workspace = 8, monitor:eDP-1
workspace = 9, monitor:eDP-1
workspace = 10, monitor:eDP-1
2025-11-09 00:06:10 +04:00
# Autostart
2025-11-22 00:16:21 +04:00
exec-once = waypaper --restore # Restore wallpaper first
exec-once = sleep 1 && ~/.config/hypr/sync-caelestia-wallpaper.sh # Sync Caelestia's wallpaper reference
exec-once = sleep 1 && caelestia shell -d # Caelestia shell (replaces waybar) - start after wallpaper loads
2025-11-11 20:15:17 +00:00
exec-once = hyprctl setcursor Adwaita 24 # Needed on NixOS
2025-11-11 16:28:20 +00:00
exec-once = mkdir -p $HOME/Pictures/Screenshots
2025-11-09 00:06:10 +04:00
# Our apps, adjust for yourself, otherwise apps won't run!
2025-11-21 20:09:02 +04:00
$terminal = kitty
$fileManager = nautilus
$menu = wofi --show drun
2025-11-21 20:09:02 +04:00
$telegram = Telegram
2025-11-10 20:44:47 +00:00
$spotify = spotify
2025-11-09 00:06:10 +04:00
$vscode = code
2025-11-21 20:09:02 +04:00
$browser = flatpak run app.zen_browser.zen
2025-11-09 00:06:10 +04:00
# Cursor
2025-11-10 20:44:47 +00:00
env = XCURSOR_THEME,Adwaita
env = XCURSOR_SIZE,24
2025-11-09 00:06:10 +04:00
# Input configuration
input {
kb_layout = us, ru
kb_variant =
kb_model =
kb_options = grp:alt_shift_toggle
kb_rules =
numlock_by_default = true
2025-11-09 00:06:10 +04:00
follow_mouse = 1
2025-11-09 00:06:10 +04:00
touchpad {
natural_scroll = false
scroll_factor = 0.6
}
2025-11-09 00:06:10 +04:00
sensitivity = 0 # -1.0 to 1.0, 0 means no modification.
}
2025-11-09 00:06:10 +04:00
# Gestures
gesture = 3, horizontal, workspace
gesture = 3, vertical, fullscreen
# Source pywal colors for borders
source = ~/.cache/wal/hyprland-colors.conf
2025-11-09 00:06:10 +04:00
# General settings
general {
2025-11-21 20:09:02 +04:00
gaps_in = 10 # The space between windows
gaps_out = 40 # The space between screen edges & borders (Caelestia style)
2025-11-21 20:09:02 +04:00
border_size = 3
resize_on_border = false
allow_tearing = false
layout = dwindle
2025-11-21 20:09:02 +04:00
# Border colors are now sourced from pywal (see above)
# If pywal colors not generated yet, fallback colors will be used
}
2025-11-09 00:06:10 +04:00
# Decoration settings (borders)
decoration {
rounding = 13
# Change transparency of focused and unfocused windows
2025-11-11 16:28:20 +00:00
active_opacity = 0.985
inactive_opacity = 0.85
2025-11-09 00:06:10 +04:00
#shadow {
# enabled = true
# range = 4
# render_power = 3
# color = rgba(1a1a1aee)
#}
2025-11-11 16:28:20 +00:00
blur {
enabled = false # Disabled for 144Hz performance
2025-11-11 16:28:20 +00:00
size = 3
passes = 1
2025-11-11 16:28:20 +00:00
vibrancy = 0.1696
}
}
2025-11-09 00:06:10 +04:00
# Animations
animations {
2025-11-09 00:06:10 +04:00
enabled = true
2025-11-21 20:09:02 +04:00
# Animation curves
bezier = specialWorkSwitch, 0.05, 0.7, 0.1, 1
bezier = emphasizedAccel, 0.3, 0, 0.8, 0.15
bezier = emphasizedDecel, 0.05, 0.7, 0.1, 1
bezier = standard, 0.2, 0, 0, 1
# Animation configs - optimized for 144Hz
animation = layersIn, 1, 3, emphasizedDecel, slide
animation = layersOut, 1, 2, emphasizedAccel, slide
animation = fadeLayers, 1, 3, standard
2025-11-21 20:09:02 +04:00
animation = windowsIn, 1, 3, emphasizedDecel
animation = windowsOut, 1, 2, emphasizedAccel
animation = windowsMove, 1, 3, standard
animation = workspaces, 1, 3, standard
2025-11-21 20:09:02 +04:00
animation = specialWorkspace, 1, 3, specialWorkSwitch, slidefadevert 15%
2025-11-21 20:09:02 +04:00
animation = fade, 1, 3, standard
animation = fadeDim, 1, 3, standard
animation = border, 1, 3, standard
}
2025-11-09 00:06:10 +04:00
# Layouts
dwindle {
2025-11-09 00:06:10 +04:00
pseudotile = true
preserve_split = true
2025-11-11 20:15:17 +00:00
smart_split = false
2025-11-09 00:06:10 +04:00
}
# Default wallpaper settings
misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
2025-11-10 20:44:47 +00:00
disable_hyprland_logo = true
2025-11-09 00:06:10 +04:00
disable_splash_rendering = true
key_press_enables_dpms = true
mouse_move_enables_dpms = true
vfr = true # Enable for proper 144Hz rendering
2025-11-09 00:06:10 +04:00
vrr = 0
}
2025-11-09 00:06:10 +04:00
# Binds configuration
binds {
disable_keybind_grabbing = false
}
2025-11-09 00:06:10 +04:00
# XWayland settings
2025-11-16 00:58:01 +04:00
#xwayland {
# enabled = true
# force_zero_scaling = false
# use_nearest_neighbor = false
#}
2025-11-09 00:06:10 +04:00
# Window Rules
## Default rules
2026-02-06 11:51:03 -06:00
windowrule {
# Ignore maximize requests from all apps
name = suppress-maximize-events
match:class = .*
suppress_event = maximize
}
windowrule {
# Fix some dragging issues with XWayland
name = fix-xwayland-drags
match:class = ^$no_focus = true,floating:1,fullscreen:0,pinned:0
match:title = ^$
match:xwayland = true
match:float = true
match:fullscreen = false
match:pin = false
no_focus = true
}
2025-11-09 00:06:10 +04:00
## Floating app rules
2026-02-06 11:51:03 -06:00
windowrule {
name = PulseAudio-float
match:class = ^(org.pulseaudio.pavucontrol)$
match:float = true
}
windowrule {
name = Blueman-manager
match:title = ^(blueman-manager)$
match:float = true
}
windowrule {
name = Network-Manager-Connection-Editor
match:class = ^(nm-connection-editor)$
match:float = true
}
windowrule {
name = waypaper
match:class = ^(waypaper)$
match:float = true
}
windowrule {
name = nokyan-Resources
match:class = ^(net.nokyan.Resources)$
match:float = true
size = 1150 600
}
windowrule {
name = gnome-calculator
match:class = ^(gnome-calculator)$
match:float = true
}
windowrule {
name = Calculator
match:class = ^(Calculator)$
match:float = true
}
2025-11-09 00:06:10 +04:00
## File picker fixes
2026-02-06 11:51:03 -06:00
windowrule {
name = OpenFiles
match:title = ^(Open Files|File Picker)$
match:class = ^(.*)$
match:float = true
}
windowrule {
name = OpenFolder
match:title = ^(Open Folder|File Picker)$
match:class = ^(.*)$
match:float = true
}
windowrule {
name = SelectImage
match:title = ^(Select Image|File Picker)$
match:class = ^(.*)
match:float = true
}
windowrule {
name = SaveFile
match:title = ^(Save File|File Picker)$
match:class = ^(.*)$
match:float = true
}
windowrule {
name = ChangeDownloadLocation
match:title = ^(Change Download Location|File Picker)$
match:class = ^(.*)$
match:float = true
}
windowrule {
name = DesktopPortal
match:class = ^(xdg-desktop-portal-gtk)$
match:float = true
}
2025-11-09 00:06:10 +04:00
## Picture-in-Picture
2026-02-06 11:51:03 -06:00
windowrule {
name = Picture-in-Picture
match:title = ^(Picture-in-Picture)$
match:float = true
}
windowrule {
name = Pin-PIP
match:title = ^(Picture-in-Picture)$
match:pin = true
}
windowrule {
name = PIP-Position
match:title = ^(Picture-in-Picture)$
move = 69.5% 4%
}
2025-11-09 00:06:10 +04:00
# Layer Rules
# Caelestia shell layer rules
2026-02-06 11:51:03 -06:00
layerrule {
name = Caelestia-drawers
match:title = ^caelestia(drawers|background)$
animation = fade
}
layerrule {
name = drawers
match:namespace = caelestia-drawers
blur = on
}
layerrule {
name = drawers-alpha
match:namespace = caelestia-drawers
ignore_alpha = 0.57
}
2025-11-15 13:22:24 +04:00
2026-02-06 11:51:03 -06:00
layerrule {
name = border-exclusion
match:title = ^caelestia-(border-exclusion|area-picker)$
no_anim = true
}
2025-11-09 00:06:10 +04:00
2026-02-06 11:51:03 -06:00
layerrule {
name = wofi
match:namespace = wofi
blur = on
}
layerrule {
name = wofi-ignore-alpha
match:namespace = wofi
ignore_alpha = 0.2
}
2025-11-09 00:06:10 +04:00
# Keybindings
$mainMod = SUPER # Sets "Windows" key as main modifier
2025-11-09 00:06:10 +04:00
$mainMod2 = ALT # Secondary modifier for window management (ALT Button)
2025-11-11 16:28:20 +00:00
$shiftMod = SHIFT
# Caelestia launcher (Win+R)
bind = $mainMod, R, global, caelestia:launcher
2025-11-09 00:06:10 +04:00
# System binds
bind = $mainMod, C, killactive,
2025-11-10 20:44:47 +00:00
bind = $mainMod, M, exit, # Safer exit combination
2025-11-09 00:06:10 +04:00
bind = $mainMod, Z, togglefloating,
bind = $mainMod, X, fullscreen
2025-11-22 18:46:42 +04:00
bind = $mainMod, L, exec, loginctl lock-session
2025-11-09 00:06:10 +04:00
bind = $mainMod, O, togglesplit, # Toggle split direction
2025-11-13 20:38:00 +00:00
bind = $mainMod, P, exec, poweroff
bind = $mainMod, RETURN, exec, wlogout
bind = $mainMod SHIFT, B, exec, hyprctl keyword decoration:blur:enabled toggle # Toggle blur on/off
2025-11-09 00:06:10 +04:00
# App launcher (wofi - disabled in favor of Caelestia)
#bind = $mainMod, R, exec, $menu
# Notification center
bind = $mainMod, N, exec, swaync-client -t -sw
2025-11-09 00:06:10 +04:00
# App launch binds
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, F, exec, $fileManager
bind = $mainMod, B, exec, $browser
2025-11-11 16:28:20 +00:00
bind = $mainMod, V, exec, $vscode
2025-11-09 00:06:10 +04:00
bind = $mainMod, T, exec, $telegram
2025-11-10 20:44:47 +00:00
bind = $mainMod, S, exec, $spotify
bind = $mainMod, W, exec, /home/duma/.local/bin/waypaper
2025-11-09 00:06:10 +04:00
# Utility binds
bind = CTRL SHIFT, ESCAPE, exec, $terminal htop # Task manager alternative
2025-11-11 16:28:20 +00:00
bind = $mainMod SHIFT, S, exec, hyprshot -m region -o $HOME/Pictures/Screenshots -f Screenshot_$(date "+%Y-%m-%d_%H:%M:%S").png -z
2025-11-09 00:06:10 +04:00
# WORKSPACE MANAGEMENT (SUPER)
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
2025-11-09 00:06:10 +04:00
# Workspace navigation with arrow keys
bind = $mainMod, left, workspace, r-1
bind = $mainMod, right, workspace, r+1
# Move window to workspace
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
2025-11-09 00:06:10 +04:00
# Move window to workspace with arrow keys
bind = $mainMod SHIFT, left, movetoworkspace, r-1
bind = $mainMod SHIFT, right, movetoworkspace, r+1
# Move window to workspace silently (without switching to it)
bind = $mainMod CTRL, 1, movetoworkspacesilent, 1
bind = $mainMod CTRL, 2, movetoworkspacesilent, 2
bind = $mainMod CTRL, 3, movetoworkspacesilent, 3
bind = $mainMod CTRL, 4, movetoworkspacesilent, 4
bind = $mainMod CTRL, 5, movetoworkspacesilent, 5
bind = $mainMod CTRL, 6, movetoworkspacesilent, 6
bind = $mainMod CTRL, 7, movetoworkspacesilent, 7
bind = $mainMod CTRL, 8, movetoworkspacesilent, 8
bind = $mainMod CTRL, 9, movetoworkspacesilent, 9
bind = $mainMod CTRL, 0, movetoworkspacesilent, 10
bind = $mainMod CTRL, left, movetoworkspacesilent, r-1
bind = $mainMod CTRL, right, movetoworkspacesilent, r+1
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
2025-11-09 00:06:10 +04:00
# WINDOW MANAGEMENT (ALT)
# Move focus with ALT + arrow keys (more ergonomic than SUPER)
bind = $mainMod2, left, movefocus, l
bind = $mainMod2, right, movefocus, r
bind = $mainMod2, up, movefocus, u
bind = $mainMod2, down, movefocus, d
# Cycle through windows with ALT + TAB
bind = $mainMod2, TAB, cyclenext
bind = $mainMod, TAB, cyclenext, prev
# Resize windows with ALT + CTRL + arrow keys
bind = $mainMod2 CTRL, left, resizeactive, -50 0
bind = $mainMod2 CTRL, right, resizeactive, 50 0
bind = $mainMod2 CTRL, up, resizeactive, 0 -50
bind = $mainMod2 CTRL, down, resizeactive, 0 50
# Move windows with ALT + SHIFT + arrow keys
bind = $mainMod2 SHIFT, left, movewindow, l
bind = $mainMod2 SHIFT, right, movewindow, r
bind = $mainMod2 SHIFT, up, movewindow, u
bind = $mainMod2 SHIFT, down, movewindow, d
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous