home-config/hypr/hyprland.conf
9396554c2141f3c4e14bcbd71d0f31b9ff7816d6
· 8.3 KB · 254 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, foot |
| 119 | bind = $mainMod CTRL, Return, exec, foot -a float-foot |
| 120 | bind = $mainMod SHIFT, Q, killactive |
| 121 | bind = $mainMod SHIFT, E, exit |
| 122 | bind = $mainMod SHIFT, Space, togglefloating |
| 123 | bind = $mainMod SHIFT, Return, pin, active |
| 124 | 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 |
| 125 | bind = $mainMod, P, pseudo, # dwindle |
| 126 | bind = $mainMod, J, togglesplit, # dwindle |
| 127 | bind = $mainMod, F, fullscreen, 1 |
| 128 | bind = $mainMod SHIFT, F, fullscreen |
| 129 | bind = ,XF86MonBrightnessUp, exec, light -A 10 |
| 130 | bind = ,XF86MonBrightnessDown, exec, light -U 10 |
| 131 | bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5 |
| 132 | bind = ,XF86AudioLowerVolume, exec, pamixer -d 5 |
| 133 | bind = ,XF86AudioMute, exec, pamixer -t |
| 134 | bind = ,XF86AudioPlay, exec, playerctl play-pause |
| 135 | bind = ,XF86AudioPause, exec, playerctl play-pause |
| 136 | bind = ,XF86AudioNext, exec, playerctl next |
| 137 | bind = ,XF86AudioPrev, exec, playerctl previous |
| 138 | bind = ,XF86AudioStop, exec, playerctl stop |
| 139 | |
| 140 | # Move workspace between monitors |
| 141 | bind = $mainMod CTRL SHIFT, left, movecurrentworkspacetomonitor, l |
| 142 | bind = $mainMod CTRL SHIFT, right, movecurrentworkspacetomonitor, r |
| 143 | bind = $mainMod CTRL SHIFT, up, movecurrentworkspacetomonitor, u |
| 144 | bind = $mainMod CTRL SHIFT, down, movecurrentworkspacetomonitor, d |
| 145 | |
| 146 | # Move focus with mainMod + arrow keys |
| 147 | bind = $mainMod, left, movefocus, l |
| 148 | bind = $mainMod, right, movefocus, r |
| 149 | bind = $mainMod, up, movefocus, u |
| 150 | bind = $mainMod, down, movefocus, d |
| 151 | |
| 152 | # Move window with mainMod + SHIFT + arrow keys |
| 153 | bind = $mainMod SHIFT, left, movewindow, l |
| 154 | bind = $mainMod SHIFT, right, movewindow, r |
| 155 | bind = $mainMod SHIFT, up, movewindow, u |
| 156 | bind = $mainMod SHIFT, down, movewindow, d |
| 157 | |
| 158 | # Switch workspaces with mainMod + [0-9] |
| 159 | bind = $mainMod, 1, workspace, 1 |
| 160 | bind = $mainMod, 2, workspace, 2 |
| 161 | bind = $mainMod, 3, workspace, 3 |
| 162 | bind = $mainMod, 4, workspace, 4 |
| 163 | bind = $mainMod, 5, workspace, 5 |
| 164 | bind = $mainMod, 6, workspace, 6 |
| 165 | bind = $mainMod, 7, workspace, 7 |
| 166 | bind = $mainMod, 8, workspace, 8 |
| 167 | bind = $mainMod, 9, workspace, 9 |
| 168 | bind = $mainMod, 0, workspace, 10 |
| 169 | |
| 170 | # Move active window to a workspace with mainMod + SHIFT + [0-9] |
| 171 | bind = $mainMod SHIFT, 1, movetoworkspace, 1 |
| 172 | bind = $mainMod SHIFT, 2, movetoworkspace, 2 |
| 173 | bind = $mainMod SHIFT, 3, movetoworkspace, 3 |
| 174 | bind = $mainMod SHIFT, 4, movetoworkspace, 4 |
| 175 | bind = $mainMod SHIFT, 5, movetoworkspace, 5 |
| 176 | bind = $mainMod SHIFT, 6, movetoworkspace, 6 |
| 177 | bind = $mainMod SHIFT, 7, movetoworkspace, 7 |
| 178 | bind = $mainMod SHIFT, 8, movetoworkspace, 8 |
| 179 | bind = $mainMod SHIFT, 9, movetoworkspace, 9 |
| 180 | bind = $mainMod SHIFT, 0, movetoworkspace, 10 |
| 181 | |
| 182 | # Scroll through existing workspaces with mainMod + scroll |
| 183 | bind = $mainMod, mouse_down, workspace, e+1 |
| 184 | bind = $mainMod, mouse_up, workspace, e-1 |
| 185 | |
| 186 | # Move/resize windows with mainMod + LMB/RMB and dragging |
| 187 | bindm = $mainMod, mouse:272, movewindow |
| 188 | bindm = $mainMod, mouse:273, resizewindow |
| 189 | |
| 190 | # Bind mainMod + L to screenlocker |
| 191 | bind = $mainMod, L, exec, swaylock --screenshots --clock --indicator --fade-in 0.3 --effect-blur 7x5 --effect-greyscale |
| 192 | bind = $mainMod SHIFT, L, exec, swaylock --screenshots --clock --indicator --effect-blur 7x5 --effect-greyscale & sleep 0.5; loginctl suspend |
| 193 | |
| 194 | # Keybind for screenshot |
| 195 | bind = $mainMod SHIFT, S, exec, grimblast copy area |
| 196 | bind = $mainMod SHIFT, Print, exec, grimblast edit area |
| 197 | |
| 198 | # Notifications keybinds |
| 199 | bind = $mainMod, N, exec, makoctl dismiss |
| 200 | bind = $mainMod SHIFT, N, exec, makoctl dismiss -a |
| 201 | |
| 202 | # Color picker |
| 203 | bind = $mainMod SHIFT, C, exec, hyprpicker -a |
| 204 | |
| 205 | # LinkedIn Joke (very serious) |
| 206 | bind = $mainMod SHIFT CTRL ALT, L, exec, xdg-open https://linkedin.com |
| 207 | |
| 208 | # Window Rules |
| 209 | |
| 210 | # Firefox PiP |
| 211 | windowrulev2 = float, class:^(firefox)$, title:^(Picture-in-Picture)$ |
| 212 | windowrulev2 = pin, class:^(firefox)$, title:^(Picture-in-Picture)$ |
| 213 | windowrulev2 = size 578 326, class:^(firefox)$, title:^(Picture-in-Picture)$ |
| 214 | |
| 215 | # Firefox Sharing Indicator |
| 216 | windowrulev2 = float, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 217 | windowrulev2 = size 56 31, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 218 | windowrulev2 = move 50% 0, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 219 | windowrulev2 = nomaximizerequest, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 220 | windowrulev2 = nofullscreenrequest, class:^(firefox)$, title:^(Firefox — Sharing Indicator)$ |
| 221 | |
| 222 | # Weather |
| 223 | windowrulev2 = float,class:^(ala-wttr)$ |
| 224 | windowrulev2 = size 740 712, class:^(ala-wttr)$ |
| 225 | |
| 226 | # Floating terminal |
| 227 | windowrulev2 = float,class:^(float-foot)$ |
| 228 | windowrulev2 = size 930 680,class:^(float-foot)$ |
| 229 | windowrulev2 = center,class:^(float-foot)$ |
| 230 | |
| 231 | # Change color of pinned windows |
| 232 | windowrulev2 = bordercolor rgba(bf0000ee) rgba(ab00adee) 45deg,pinned:1 |
| 233 | |
| 234 | # Fun Keybinds |
| 235 | # Subway surfer |
| 236 | bind = $mainMod CTRL SHIFT, S, exec, mpv ~/.config/hypr/subwaysurfer.webm |
| 237 | windowrulev2 = float,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$ |
| 238 | windowrulev2 = size 310 554,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$ |
| 239 | windowrulev2 = move 81% 46% ,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$ |
| 240 | windowrulev2 = pin,class:^(mpv)$, title:^(subwaysurfer.webm - mpv)$ |
| 241 | |
| 242 | # Family guy funny moments |
| 243 | bind = $mainMod CTRL SHIFT, F, exec, mpv ~/.config/hypr/family_guy.mp4 |
| 244 | windowrulev2 = float,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$ |
| 245 | windowrulev2 = size 595 336,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$ |
| 246 | windowrulev2 = move 67% 5% ,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$ |
| 247 | windowrulev2 = pin,class:^(mpv)$, title:^(family_guy.mp4 - mpv)$ |
| 248 | |
| 249 | exec-once = ~/.config/hypr/autostart.sh |
| 250 | |
| 251 | misc { |
| 252 | disable_hyprland_logo = true |
| 253 | force_default_wallpaper = 0 |
| 254 | } |