home-config/hypr/hyprland.conf
1b531a384961505e98d3475694dd5767c8d73714
· 6.8 KB · 221 lines
raw
| 1 | exec-once = dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=Hyprland |
| 2 | |
| 3 | # |
| 4 | # Please note not all available settings / options are set here. |
| 5 | # For a full list, see the wiki |
| 6 | # |
| 7 | |
| 8 | # See https://wiki.hyprland.org/Configuring/Monitors/ |
| 9 | monitor=,preferred,auto,1 |
| 10 | |
| 11 | |
| 12 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more |
| 13 | |
| 14 | # Execute your favorite apps at launch |
| 15 | # exec-once = waybar & hyprpaper & firefox |
| 16 | |
| 17 | # Source a file (multi-file configs) |
| 18 | source = ~/.config/hypr/monitors.conf |
| 19 | |
| 20 | # Some default env vars. |
| 21 | env = XCURSOR_SIZE,24 |
| 22 | |
| 23 | # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ |
| 24 | input { |
| 25 | kb_layout = us |
| 26 | kb_variant = |
| 27 | kb_model = |
| 28 | kb_options = |
| 29 | kb_rules = |
| 30 | numlock_by_default = true |
| 31 | |
| 32 | follow_mouse = 1 |
| 33 | |
| 34 | touchpad { |
| 35 | natural_scroll = no |
| 36 | } |
| 37 | |
| 38 | sensitivity = 0 # -1.0 - 1.0, 0 means no modification. |
| 39 | } |
| 40 | |
| 41 | general { |
| 42 | # See https://wiki.hyprland.org/Configuring/Variables/ for more |
| 43 | |
| 44 | gaps_in = 5 |
| 45 | gaps_out = 10 |
| 46 | border_size = 2 |
| 47 | col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg |
| 48 | col.inactive_border = rgba(595959aa) |
| 49 | |
| 50 | layout = dwindle |
| 51 | } |
| 52 | |
| 53 | decoration { |
| 54 | # See https://wiki.hyprland.org/Configuring/Variables/ for more |
| 55 | |
| 56 | rounding = 5 |
| 57 | blur { |
| 58 | enabled = yes |
| 59 | size = 3 |
| 60 | passes = 1 |
| 61 | new_optimizations = on |
| 62 | } |
| 63 | |
| 64 | drop_shadow = yes |
| 65 | shadow_range = 4 |
| 66 | shadow_render_power = 3 |
| 67 | col.shadow = rgba(1a1a1aee) |
| 68 | } |
| 69 | |
| 70 | animations { |
| 71 | enabled = yes |
| 72 | |
| 73 | # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more |
| 74 | |
| 75 | bezier = myBezier, 0.05, 0.9, 0.1, 1.05 |
| 76 | |
| 77 | animation = windows, 1, 7, myBezier |
| 78 | animation = windowsOut, 1, 7, default, popin 80% |
| 79 | animation = border, 1, 10, default |
| 80 | animation = borderangle, 1, 8, default |
| 81 | animation = fade, 1, 7, default |
| 82 | animation = workspaces, 1, 6, default |
| 83 | } |
| 84 | |
| 85 | dwindle { |
| 86 | # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more |
| 87 | pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below |
| 88 | preserve_split = yes # you probably want this |
| 89 | } |
| 90 | |
| 91 | master { |
| 92 | # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more |
| 93 | new_is_master = true |
| 94 | } |
| 95 | |
| 96 | gestures { |
| 97 | # See https://wiki.hyprland.org/Configuring/Variables/ for more |
| 98 | workspace_swipe = off |
| 99 | } |
| 100 | |
| 101 | # Example per-device config |
| 102 | # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more |
| 103 | device:epic-mouse-v1 { |
| 104 | sensitivity = -0.5 |
| 105 | } |
| 106 | |
| 107 | # Example windowrule v1 |
| 108 | # windowrule = float, ^(kitty)$ |
| 109 | # Example windowrule v2 |
| 110 | # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ |
| 111 | # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more |
| 112 | |
| 113 | |
| 114 | # See https://wiki.hyprland.org/Configuring/Keywords/ for more |
| 115 | $mainMod = SUPER |
| 116 | |
| 117 | # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more |
| 118 | bind = $mainMod, Return, exec, alacritty |
| 119 | bind = $mainMod SHIFT, Q, killactive |
| 120 | bind = $mainMod SHIFT, E, exit |
| 121 | bind = $mainMod SHIFT, Space, togglefloating |
| 122 | bind = $mainMod, D, exec, fuzzel --width=35 --font='Hack:weight=bold:size=12' --background-color='282a36fa' --selection-color='3d4460fa' --line-height=20 --border-radius=20 |
| 123 | bind = $mainMod, P, pseudo, # dwindle |
| 124 | bind = $mainMod, J, togglesplit, # dwindle |
| 125 | bind = $mainMod, F, fullscreen, 1 |
| 126 | bind = $mainMod SHIFT, F, fullscreen |
| 127 | bind = ,XF86MonBrightnessUp, exec, light -A 10 |
| 128 | bind = ,XF86MonBrightnessDown, exec, light -U 10 |
| 129 | bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5 |
| 130 | bind = ,XF86AudioLowerVolume, exec, pamixer -d 5 |
| 131 | bind = ,XF86AudioMute, exec, pamixer -t |
| 132 | bind = ,XF86AudioPlay, exec, playerctl play-pause |
| 133 | bind = ,XF86AudioPause, exec, playerctl play-pause |
| 134 | bind = ,XF86AudioNext, exec, playerctl next |
| 135 | bind = ,XF86AudioPrev, exec, playerctl previous |
| 136 | bind = ,XF86AudioStop, exec, playerctl stop |
| 137 | |
| 138 | # Move workspace between monitors |
| 139 | bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l |
| 140 | bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r |
| 141 | bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u |
| 142 | bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d |
| 143 | |
| 144 | # Move focus with mainMod + arrow keys |
| 145 | bind = $mainMod, left, movefocus, l |
| 146 | bind = $mainMod, right, movefocus, r |
| 147 | bind = $mainMod, up, movefocus, u |
| 148 | bind = $mainMod, down, movefocus, d |
| 149 | |
| 150 | # Move window with mainMod + SHIFT + arrow keys |
| 151 | bind = $mainMod SHIFT, left, movewindow, l |
| 152 | bind = $mainMod SHIFT, right, movewindow, r |
| 153 | bind = $mainMod SHIFT, up, movewindow, u |
| 154 | bind = $mainMod SHIFT, down, movewindow, d |
| 155 | |
| 156 | # Switch workspaces with mainMod + [0-9] |
| 157 | bind = $mainMod, 1, workspace, 1 |
| 158 | bind = $mainMod, 2, workspace, 2 |
| 159 | bind = $mainMod, 3, workspace, 3 |
| 160 | bind = $mainMod, 4, workspace, 4 |
| 161 | bind = $mainMod, 5, workspace, 5 |
| 162 | bind = $mainMod, 6, workspace, 6 |
| 163 | bind = $mainMod, 7, workspace, 7 |
| 164 | bind = $mainMod, 8, workspace, 8 |
| 165 | bind = $mainMod, 9, workspace, 9 |
| 166 | bind = $mainMod, 0, workspace, 10 |
| 167 | |
| 168 | # Move active window to a workspace with mainMod + SHIFT + [0-9] |
| 169 | bind = $mainMod SHIFT, 1, movetoworkspace, 1 |
| 170 | bind = $mainMod SHIFT, 2, movetoworkspace, 2 |
| 171 | bind = $mainMod SHIFT, 3, movetoworkspace, 3 |
| 172 | bind = $mainMod SHIFT, 4, movetoworkspace, 4 |
| 173 | bind = $mainMod SHIFT, 5, movetoworkspace, 5 |
| 174 | bind = $mainMod SHIFT, 6, movetoworkspace, 6 |
| 175 | bind = $mainMod SHIFT, 7, movetoworkspace, 7 |
| 176 | bind = $mainMod SHIFT, 8, movetoworkspace, 8 |
| 177 | bind = $mainMod SHIFT, 9, movetoworkspace, 9 |
| 178 | bind = $mainMod SHIFT, 0, movetoworkspace, 10 |
| 179 | |
| 180 | # Scroll through existing workspaces with mainMod + scroll |
| 181 | bind = $mainMod, mouse_down, workspace, e+1 |
| 182 | bind = $mainMod, mouse_up, workspace, e-1 |
| 183 | |
| 184 | # Move/resize windows with mainMod + LMB/RMB and dragging |
| 185 | bindm = $mainMod, mouse:272, movewindow |
| 186 | bindm = $mainMod, mouse:273, resizewindow |
| 187 | |
| 188 | # Bind mainMod + L to screenlocker |
| 189 | bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 1 --effect-blur 7x5 --effect-greyscale |
| 190 | |
| 191 | # Keybind for screenshot |
| 192 | bind = $mainMod SHIFT, S, exec, grimblast copy area |
| 193 | bind = $mainMod SHIFT, Print, exec, grimblast edit area |
| 194 | |
| 195 | # Notifications keybinds |
| 196 | bind = $mainMod, N, exec, makoctl dismiss |
| 197 | bind = $mainMod SHIFT, N, exec, makoctl dismiss -a |
| 198 | |
| 199 | # Window Rules |
| 200 | |
| 201 | # Firefox PiP |
| 202 | windowrulev2 = float, class:^(firefox)$, title:^(Picture-in-Picture)$ |
| 203 | windowrulev2 = pin, class:^(firefox)$, title:^(Picture-in-Picture)$ |
| 204 | windowrulev2 = size 578 326, class:^(firefox)$, title:^(Picture-in-Picture)$ |
| 205 | |
| 206 | # Firefox Sharing Indicator |
| 207 | windowrulev2 = float, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 208 | windowrulev2 = size 56 31, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 209 | windowrulev2 = move 50% 0, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 210 | windowrulev2 = nomaximizerequest, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 211 | windowrulev2 = nofullscreenrequest, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 212 | |
| 213 | # Weather |
| 214 | windowrulev2 = float,class:^(ala-wttr)$ |
| 215 | windowrulev2 = size 740 712, class:^(ala-wttr)$ |
| 216 | |
| 217 | exec-once = ~/.config/hypr/autostart.sh |
| 218 | |
| 219 | misc { |
| 220 | disable_hyprland_logo = true |
| 221 | } |