# | |_| | | | | '_ \| '__| |/ _` | '_ \ / _` | # | _ | |_| | |_) | | | | (_| | | | | (_| | # |_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_| # |___/|_| # # ╰────────────────────────────────────────────────────────────────────╯ # ╭──────────────────────────────────────────────────────────╮ # │ Autostart apps │ # ╰──────────────────────────────────────────────────────────╯ # ── System apps ───────────────────────────────────────────────────────── # exec-once = pipewire exec-once = /usr/lib/pam_kwallet_init exec-once = udieskie exec-once = hyprctl setcursor catppuccin-macchiato-lavender-cursors 24 # ── Utils ─────────────────────────────────────────────────────────────── exec-once = wpaperd -d exec-once = swaync --skip-system-css # ╭──────────────────────────────────────────────────────────╮ # │ Config │ # ╰──────────────────────────────────────────────────────────╯ # Source a file (multi-file configs) source = ~/.config/hypr/theme.conf source = ~/.config/hypr/include/*.conf # ── Monitors ────────────────────────────────────────────────────────── monitor = , preferred, auto, 1 monitor = WAYLAND-1, disable # hack for when running manually # Workaround for wrong wpaperd texture on vertical screen # https://github.com/hyprwm/Hyprland/issues/9408#issuecomment-2661608482 render { expand_undersized_textures = false } # ── Input devides ───────────────────────────────────────────────────── input { kb_layout = latam kb_variant = kb_model = kb_options = caps:escape kb_rules = follow_mouse = 2 touchpad { natural_scroll = true } sensitivity = 0 # -1.0 - 1.0, 0 means no modification. } # ── General config ──────────────────────────────────────────────────── general { gaps_in = 5 gaps_out = 10 border_size = 2 col.active_border = $teal $teal col.inactive_border = $surface1 $surface1 # snap { # enabled = true # } layout = master } # decoration { # rounding = 2 # drop_shadow = true # shadow_range = 4 # shadow_render_power = 3 # col.shadow = rgba($baseAlphaee) # } animations { enabled = true animation = windows, 1, 5, default, slide animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 6, default animation = specialWorkspace, 1, 8, default, fade } gestures { workspace_swipe = true workspace_swipe_invert = true workspace_swipe_distance = 200 } misc { enable_swallow = true swallow_regex = ^(Alacritty|kitty|footclient)$ # swallow_exception_regex = "" mouse_move_focuses_monitor = false } # ── Layouts ─────────────────────────────────────────────────────────── master { new_status = slave mfact = 0.5 # slave_count_for_center_master = 4 } # ╭──────────────────────────────────────────────────────────╮ # │ Windows rules │ # ╰──────────────────────────────────────────────────────────╯ windowrulev2 = float, class:org.gnome.Nautilus windowrulev2 = float, class:xdg-desktop-portal-gtk # ╭───────────────────────────────────────────────────────────╮ # │ Workspaces rules │ # ╰───────────────────────────────────────────────────────────╯ workspace = 1, monitor:HDMI-A-1, persistent:true workspace = 2, monitor:HDMI-A-1, persistent:true workspace = 3, monitor:HDMI-A-1, persistent:true workspace = 4, monitor:HDMI-A-1, persistent:true workspace = 5, monitor:HDMI-A-1, persistent:true workspace = 6, monitor:HDMI-A-2, persistent:true workspace = 7, monitor:HDMI-A-2, persistent:true workspace = 8, monitor:HDMI-A-2, persistent:true workspace = 9, monitor:HDMI-A-2, persistent:true # ╭──────────────────────────────────────────────────────────╮ # │ Keybindings │ # ╰──────────────────────────────────────────────────────────╯ $mainMod = SUPER # $menu = bemenu-run -iwn --binding vim --vim-esc-exits --scrollbar autohide --fixed-height --counter always -l 20 -P '>' -p 'Open:' -B 2 -R 5 --cw '5x' --fn 'JetBrainsMono 13' --bdr '##$tealAlpha' --ab '##$baseAlpha' --af '##$textAlpha' --fb '##$baseAlpha' --ff '##$textAlpha' --cf '##$mauveAlpha' --hb '##$surface0Alpha' --hf '##$tealAlpha' --nb '##$baseAlpha' --nf '##$textAlpha' --tb '##$mauveAlpha' --tf '##$baseAlpha' --scb '##$surface0Alpha' --scf '##$mauveAlpha' $menu = rofi -show drun -run-command "uwsm app -- {cmd}" # ── Spawn ───────────────────────────────────────────────────────────── bind = $mainMod SHIFT, E, exec, uwsm stop bind = $mainMod, return, exec, uwsm app -- kitty bind = $mainMod SHIFT, q, killactive, bind = $mainMod, D, exec, $menu bind = $mainMod, U, exec, rofi-rbw --selector-args "-config ~/.config/rofi/rbw.rasi" # screenshot current window bind = SHIFT, Print, exec, grim -g "$(hyprctl activewindow -j | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"')" - | wl-copy && notify-send "Screenshot taken!" # screenshot area and edit it bind = SHIFT CTRL, Print, exec, grim -g "$(slurp -d)" - | swappy -f - && notify-send "Screenshot taken!" # screenshot area bind = , Print, exec, grim -g "$(slurp -d)" - | wl-copy && notify-send "Screenshot taken!" bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+ bind = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%- bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bind = , XF86AudioPlay, exec, playerctl play-pause bind = , XF86AudioNext, exec, playerctl next bind = , XF86AudioPrev, exec, playerctl previous bind = , XF86MonBrightnessUp, exec, brightnessctl set +5% # ── Window Options ──────────────────────────────────────────────────── bind = $mainMod SHIFT, space, togglefloating, bind = $mainMod, f, fullscreen, 1 # preserve gaps and bar bind = $mainMod SHIFT, f, fullscreen, 0 # use whole screen bind = $mainMod SHIFT, s, toggleswallow # ── Focus ───────────────────────────────────────────────────────────── bind = $mainMod, h, movefocus, l bind = $mainMod, j, movefocus, d bind = $mainMod, k, movefocus, u bind = $mainMod, l, movefocus, r bind = $mainMod + SHIFT, h, movewindow, l bind = $mainMod + SHIFT, j, movewindow, d bind = $mainMod + SHIFT, k, movewindow, u bind = $mainMod + SHIFT, l, movewindow, r bind = $mainMod, bar, workspace, previous bind = $mainMod CTRL, bar, focusmonitor, +1 bind = $mainMod, space, focusurgentorlast bind = $mainMod, tab, cyclenext, visible bind = $mainMod SHIFT, tab, cyclenext, visible prev # ── Layout ────────────────────────────────────────────────────────────── bind = $mainMod, plus, layoutmsg, mfact +0.1 bind = $mainMod, minus, layoutmsg, mfact -0.1 bind = $mainMod CTRL, 0, layoutmsg, mfact exact 0.5 bind = $mainMod, n, layoutmsg, addmaster bind = $mainMod SHIFT, n, layoutmsg, removemaster bind = $mainMod, m, layoutmsg, rollprev bind = $mainMod SHIFT, m, layoutmsg, rollnext bind = $mainMod, s, layoutmsg, orientationcycle # ── 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 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, 0, togglespecialworkspace, scratchpad bind = $mainMod SHIFT, 0, movetoworkspace, special:scratchpad # ── Mouse ───────────────────────────────────────────────────────────── # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow