diff --git a/hyprland.conf b/hyprland.conf index ad2f4ff..a04c623 100644 --- a/hyprland.conf +++ b/hyprland.conf @@ -1,5 +1,4 @@ -# Our powerful(in progress) Hyprland config file! -# Please read documentation! +# HyprDuma config # Monitor configuration monitor = , preferred, auto, 1 @@ -18,13 +17,14 @@ workspace = 9, monitor:eDP-1 workspace = 10, monitor:eDP-1 # Autostart -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 -exec-once = hyprctl setcursor Adwaita 24 # Needed on NixOS +exec-once = waypaper --restore +exec-once = sleep 1 && ~/.config/hypr/sync-caelestia-wallpaper.sh +exec-once = sleep 1 && caelestia shell -d +exec-once = python3 ~/.config/hypr/monitor-handler.py +exec-once = hyprctl setcursor Adwaita 24 exec-once = mkdir -p $HOME/Pictures/Screenshots -# Our apps, adjust for yourself, otherwise apps won't run! +# Apps $terminal = kitty $fileManager = nautilus $menu = wofi --show drun @@ -60,13 +60,12 @@ input { gesture = 3, horizontal, workspace gesture = 3, vertical, fullscreen -# Source pywal colors for borders +# Pywal colors source = ~/.cache/wal/hyprland-colors.conf -# General settings general { - gaps_in = 10 # The space between windows - gaps_out = 40 # The space between screen edges & borders (Caelestia style) + gaps_in = 10 + gaps_out = 40 border_size = 3 resize_on_border = false @@ -75,15 +74,11 @@ general { layout = dwindle - # Border colors are now sourced from pywal (see above) - # If pywal colors not generated yet, fallback colors will be used } -# Decoration settings (borders) decoration { rounding = 13 - # Change transparency of focused and unfocused windows active_opacity = 0.985 inactive_opacity = 0.85 @@ -95,7 +90,7 @@ decoration { #} blur { - enabled = false # Disabled for 144Hz performance + enabled = false size = 3 passes = 1 @@ -103,17 +98,14 @@ blur { } } -# Animations animations { enabled = true - # 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 @@ -130,30 +122,27 @@ animations { animation = border, 1, 3, standard } -# Layouts dwindle { pseudotile = true preserve_split = true smart_split = false } -# Default wallpaper settings misc { - force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers + force_default_wallpaper = -1 disable_hyprland_logo = true disable_splash_rendering = true key_press_enables_dpms = true mouse_move_enables_dpms = true - vfr = true # Enable for proper 144Hz rendering + vfr = true vrr = 0 } -# Binds configuration binds { disable_keybind_grabbing = false } -# XWayland settings +# XWayland #xwayland { # enabled = true # force_zero_scaling = false @@ -161,9 +150,7 @@ binds { #} # Window Rules -## Default rules windowrule { - # Ignore maximize requests from all apps name = suppress-maximize-events match:class = .* @@ -171,7 +158,6 @@ windowrule { } windowrule { - # Fix some dragging issues with XWayland name = fix-xwayland-drags match:class = ^$no_focus = true,floating:1,fullscreen:0,pinned:0 match:title = ^$ @@ -183,7 +169,7 @@ windowrule { no_focus = true } -## Floating app rules +# Floating windowrule { name = PulseAudio-float match:class = ^(org.pulseaudio.pavucontrol)$ @@ -227,7 +213,7 @@ windowrule { match:float = true } -## File picker fixes +# File pickers windowrule { name = OpenFiles match:title = ^(Open Files|File Picker)$ @@ -269,7 +255,7 @@ windowrule { match:float = true } -## Picture-in-Picture +# PiP windowrule { name = Picture-in-Picture match:title = ^(Picture-in-Picture)$ @@ -289,7 +275,6 @@ windowrule { } # Layer Rules -# Caelestia shell layer rules layerrule { name = Caelestia-drawers match:title = ^caelestia(drawers|background)$ @@ -327,31 +312,27 @@ layerrule { } # Keybindings -$mainMod = SUPER # Sets "Windows" key as main modifier -$mainMod2 = ALT # Secondary modifier for window management (ALT Button) +$mainMod = SUPER +$mainMod2 = ALT $shiftMod = SHIFT -# Caelestia launcher (Win+R) bind = $mainMod, R, global, caelestia:launcher -# System binds bind = $mainMod, C, killactive, -bind = $mainMod, M, exit, # Safer exit combination +bind = $mainMod, M, exit, bind = $mainMod, Z, togglefloating, bind = $mainMod, X, fullscreen bind = $mainMod, L, exec, loginctl lock-session -bind = $mainMod, O, togglesplit, # Toggle split direction +bind = $mainMod, O, togglesplit, 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 +bind = $mainMod SHIFT, B, exec, hyprctl keyword decoration:blur:enabled toggle -# App launcher (wofi - disabled in favor of Caelestia) #bind = $mainMod, R, exec, $menu -# Notification center bind = $mainMod, N, exec, swaync-client -t -sw -# App launch binds +# Apps bind = $mainMod, Q, exec, $terminal bind = $mainMod, F, exec, $fileManager bind = $mainMod, B, exec, $browser @@ -360,11 +341,10 @@ bind = $mainMod, T, exec, $telegram bind = $mainMod, S, exec, $spotify bind = $mainMod, W, exec, /home/duma/.local/bin/waypaper -# Utility binds -bind = CTRL SHIFT, ESCAPE, exec, $terminal htop # Task manager alternative +bind = CTRL SHIFT, ESCAPE, exec, $terminal htop bind = $mainMod SHIFT, S, exec, hyprshot -m region -o $HOME/Pictures/Screenshots -f Screenshot_$(date "+%Y-%m-%d_%H:%M:%S").png -z -# WORKSPACE MANAGEMENT (SUPER) +# Workspaces bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 @@ -376,11 +356,9 @@ bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 -# 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 @@ -392,11 +370,9 @@ bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 -# 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 @@ -411,38 +387,32 @@ 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 -# WINDOW MANAGEMENT (ALT) -# Move focus with ALT + arrow keys (more ergonomic than SUPER) +# Window management 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 +# Media keys 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 @@ -450,7 +420,6 @@ 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