|
| 1 | +# Setup monitors |
| 2 | +# See https://wiki.hyprland.org/Configuring/Monitors/ |
| 3 | +monitor=,preferred,auto,auto |
| 4 | + |
| 5 | +# Dual monitor example on G15 Strix |
| 6 | +# eDP-1 is the built in monitor while DP-1 is external |
| 7 | +# Both monitors here are at 1440 and 165Hz |
| 8 | +# DP-1 is on the left and eDP-1 is on the right |
| 9 | +#monitor=DP-1,2560x1440@165,0x0,1 |
| 10 | +#monitor=eDP-1,2560x1440@165,2560x0,1 |
| 11 | + |
| 12 | +# See https://wiki.hyprland.org/Configuring/Keywords/ for more |
| 13 | + |
| 14 | +# Execute your favorite apps at launch |
| 15 | +exec-once = ~/.config/hypr/xdg-portal-hyprland |
| 16 | +exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP |
| 17 | +exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP |
| 18 | +exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 |
| 19 | +exec-once = waybar |
| 20 | +exec = swaybg -m fill -i ~/.config/hypr/hong-kong-night.jpg |
| 21 | + |
| 22 | +# Source a file (multi-file configs) |
| 23 | +# source = ~/.config/hypr/myColors.conf |
| 24 | + |
| 25 | +# For all categories, see https://wiki.hyprland.org/Configuring/Variables/ |
| 26 | +input { |
| 27 | + kb_layout = us |
| 28 | + kb_variant = |
| 29 | + kb_model = |
| 30 | + kb_options = |
| 31 | + kb_rules = |
| 32 | + |
| 33 | + follow_mouse = 1 |
| 34 | + |
| 35 | + touchpad { |
| 36 | + natural_scroll = no |
| 37 | + } |
| 38 | + |
| 39 | + sensitivity = 0 # -1.0 - 1.0, 0 means no modification. |
| 40 | +} |
| 41 | + |
| 42 | +general { |
| 43 | + # See https://wiki.hyprland.org/Configuring/Variables/ for more |
| 44 | + |
| 45 | + gaps_in = 5 |
| 46 | + gaps_out = 20 |
| 47 | + border_size = 2 |
| 48 | + #col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg |
| 49 | + col.active_border=rgb(cdd6f4) |
| 50 | + col.inactive_border = rgba(595959aa) |
| 51 | + |
| 52 | + layout = dwindle |
| 53 | +} |
| 54 | + |
| 55 | +misc { |
| 56 | + disable_hyprland_logo = yes |
| 57 | +} |
| 58 | + |
| 59 | +decoration { |
| 60 | + # See https://wiki.hyprland.org/Configuring/Variables/ for more |
| 61 | + |
| 62 | + rounding = 10 |
| 63 | + blur = yes |
| 64 | + blur_size = 7 |
| 65 | + blur_passes = 3 |
| 66 | + blur_new_optimizations = on |
| 67 | + blurls = lockscreen |
| 68 | + |
| 69 | + drop_shadow = yes |
| 70 | + shadow_range = 4 |
| 71 | + shadow_render_power = 3 |
| 72 | + col.shadow = rgba(1a1a1aee) |
| 73 | +} |
| 74 | + |
| 75 | +animations { |
| 76 | + enabled = yes |
| 77 | + |
| 78 | + # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more |
| 79 | + |
| 80 | + bezier = myBezier, 0.05, 0.9, 0.1, 1.05 |
| 81 | + |
| 82 | + animation = windows, 1, 7, myBezier |
| 83 | + animation = windowsOut, 1, 7, default, popin 80% |
| 84 | + animation = border, 1, 10, default |
| 85 | + animation = fade, 1, 7, default |
| 86 | + animation = workspaces, 1, 6, default |
| 87 | +} |
| 88 | + |
| 89 | +dwindle { |
| 90 | + # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more |
| 91 | + pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below |
| 92 | + preserve_split = yes # you probably want this |
| 93 | +} |
| 94 | + |
| 95 | +master { |
| 96 | + # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more |
| 97 | + new_is_master = true |
| 98 | +} |
| 99 | + |
| 100 | +gestures { |
| 101 | + # See https://wiki.hyprland.org/Configuring/Variables/ for more |
| 102 | + workspace_swipe = off |
| 103 | +} |
| 104 | + |
| 105 | +# Example per-device config |
| 106 | +# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more |
| 107 | +device:epic mouse V1 { |
| 108 | + sensitivity = -0.5 |
| 109 | +} |
| 110 | + |
| 111 | +# Example windowrule v1 |
| 112 | +# windowrule = float, ^(kitty)$ |
| 113 | +# Example windowrule v2 |
| 114 | +# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ |
| 115 | +# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more |
| 116 | +# rules below would make the specific app transparent |
| 117 | +windowrulev2 = opacity 0.8 0.8,class:^(kitty)$ |
| 118 | +windowrulev2 = opacity 0.8 0.8,class:^(thunar)$ |
| 119 | +# windowrulev2 = opacity 0.8 0.8,class:^(chromium)$ |
| 120 | +# windowrulev2 = opacity 0.8 0.8,class:^(Code)$ |
| 121 | + |
| 122 | +# See https://wiki.hyprland.org/Configuring/Keywords/ for more |
| 123 | +$mainMod = SUPER |
| 124 | + |
| 125 | +# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more |
| 126 | +bind = $mainMod, Q, exec, kitty #open the terminal |
| 127 | +bind = $mainMod SHIFT, X, killactive, # close the active window |
| 128 | +bind = $mainMod, L, exec, swaylock # Lock the screen |
| 129 | +bind = $mainMod, M, exec, wlogout --protocol layer-shell # show the logout window |
| 130 | +bind = $mainMod SHIFT, M, exit, # Exit Hyprland all together no (force quit Hyprland) |
| 131 | +bind = $mainMod, E, exec, thunar # Show the graphical file browser |
| 132 | +bind = $mainMod, V, togglefloating, # Allow a window to float |
| 133 | +bind = $mainMod, SPACE, exec, wofi # Show the graphicall app launcher |
| 134 | +bind = $mainMod, P, pseudo, # dwindle |
| 135 | +bind = $mainMod, J, togglesplit, # dwindle |
| 136 | +bind = $mainMod, S, exec, grim -g "$(slurp)" - | swappy -f - # take a screenshot |
| 137 | + |
| 138 | +# ROG G15 Strix (2021) Specific binds |
| 139 | +bind = ,156, exec, rog-control-center # ASUS Armory crate key |
| 140 | +bind = ,211, exec, asusctl profile -n; pkill -SIGRTMIN+8 waybar # Fan Profile key switch between power profiles |
| 141 | +bind = ,121, exec, pamixer -t # Speaker Mute FN+F1 |
| 142 | +bind = ,122, exec, pamixer -d 5 # Volume lower key |
| 143 | +bind = ,123, exec, pamixer -i 5 # Volume Higher key |
| 144 | +bind = ,256, exec, pamixer --default-source -t # Mic mute key |
| 145 | +bind = ,232, exec, brightnessctl set 10%- # Screen brightness down FN+F7 |
| 146 | +bind = ,233, exec, brightnessctl set 10%+ # Screen brightness up FN+F8 |
| 147 | +bind = ,237, exec, brightnessctl -d asus::kbd_backlight set 33%- # Keyboard brightness down FN+F2 |
| 148 | +bind = ,238, exec, brightnessctl -d asus::kbd_backlight set 33%+ # Keyboard brightnes up FN+F3 |
| 149 | +bind = ,210, exec, asusctl led-mode -n # Switch keyboard RGB profile FN+F4 |
| 150 | + |
| 151 | +# Move focus with mainMod + arrow keys |
| 152 | +bind = $mainMod, left, movefocus, l |
| 153 | +bind = $mainMod, right, movefocus, r |
| 154 | +bind = $mainMod, up, movefocus, u |
| 155 | +bind = $mainMod, down, movefocus, d |
| 156 | + |
| 157 | +# Switch workspaces with mainMod + [0-9] |
| 158 | +bind = $mainMod, 1, workspace, 1 |
| 159 | +bind = $mainMod, 2, workspace, 2 |
| 160 | +bind = $mainMod, 3, workspace, 3 |
| 161 | +bind = $mainMod, 4, workspace, 4 |
| 162 | +bind = $mainMod, 5, workspace, 5 |
| 163 | +bind = $mainMod, 6, workspace, 6 |
| 164 | +bind = $mainMod, 7, workspace, 7 |
| 165 | +bind = $mainMod, 8, workspace, 8 |
| 166 | +bind = $mainMod, 9, workspace, 9 |
| 167 | +bind = $mainMod, 0, workspace, 10 |
| 168 | + |
| 169 | +# Move active window to a workspace with mainMod + SHIFT + [0-9] |
| 170 | +bind = $mainMod SHIFT, 1, movetoworkspace, 1 |
| 171 | +bind = $mainMod SHIFT, 2, movetoworkspace, 2 |
| 172 | +bind = $mainMod SHIFT, 3, movetoworkspace, 3 |
| 173 | +bind = $mainMod SHIFT, 4, movetoworkspace, 4 |
| 174 | +bind = $mainMod SHIFT, 5, movetoworkspace, 5 |
| 175 | +bind = $mainMod SHIFT, 6, movetoworkspace, 6 |
| 176 | +bind = $mainMod SHIFT, 7, movetoworkspace, 7 |
| 177 | +bind = $mainMod SHIFT, 8, movetoworkspace, 8 |
| 178 | +bind = $mainMod SHIFT, 9, movetoworkspace, 9 |
| 179 | +bind = $mainMod SHIFT, 0, movetoworkspace, 10 |
| 180 | + |
| 181 | +# Scroll through existing workspaces with mainMod + scroll |
| 182 | +bind = $mainMod, mouse_down, workspace, e+1 |
| 183 | +bind = $mainMod, mouse_up, workspace, e-1 |
| 184 | + |
| 185 | +# Move/resize windows with mainMod + LMB/RMB and dragging |
| 186 | +bindm = $mainMod, mouse:272, movewindow |
| 187 | +bindm = $mainMod, mouse:273, resizewindow |
0 commit comments