| 1 | autogenerated = 0 |
| 2 | |
| 3 | # source = ~/.config/hypr/monitors.conf |
| 4 | |
| 5 | |
| 6 | ################### |
| 7 | ### MY PROGRAMS ### |
| 8 | ################### |
| 9 | $terminal = alacritty |
| 10 | $fileManager = pcmanfm |
| 11 | # $menu = rofi -show drun |
| 12 | $menu = rofi -show drun |
| 13 | $browser = brave |
| 14 | |
| 15 | |
| 16 | ################# |
| 17 | ### AUTOSTART ### |
| 18 | ################# |
| 19 | exec-once = hyprpm reload -n |
| 20 | exec-once = kanshi |
| 21 | exec-once = waybar & hyprpaper & swaync & hyprsunset |
| 22 | exec-once = hypridle |
| 23 | exec-once = systemctl --user start hyprpolkitagent |
| 24 | |
| 25 | plugin { |
| 26 | hyprsplit { |
| 27 | num_workspaces = 10 |
| 28 | persistent_workspaces = true |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | ############################# |
| 33 | ### ENVIRONMENT VARIABLES ### |
| 34 | ############################# |
| 35 | # See https://wiki.hypr.land/Configuring/Environment-variables/ |
| 36 | env = HYPRSHOT_DIR,/home/krolyxon/pix/ss/ |
| 37 | env = XCURSOR_SIZE,24 |
| 38 | env = HYPRCURSOR_SIZE,24 |
| 39 | |
| 40 | ####################### |
| 41 | ### PLUGIN SETTINGS ### |
| 42 | ####################### |
| 43 | plugin { |
| 44 | split-monitor-workspaces { |
| 45 | count = 10 |
| 46 | keep_focused = 1 |
| 47 | enable_notifications = 0 |
| 48 | enable_persistent_workspaces = 1 |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | |
| 53 | |
| 54 | ################### |
| 55 | ### PERMISSIONS ### |
| 56 | ################### |
| 57 | ecosystem { |
| 58 | enforce_permissions = 1 |
| 59 | } |
| 60 | |
| 61 | permission = /usr/(bin|local/bin)/grim, screencopy, allow |
| 62 | permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow |
| 63 | permission = /usr/(bin|local/bin)/hyprpm, plugin, allow |
| 64 | |
| 65 | |
| 66 | ##################### |
| 67 | ### LOOK AND FEEL ### |
| 68 | ##################### |
| 69 | general { |
| 70 | gaps_in = 5 |
| 71 | gaps_out = 5 |
| 72 | border_size = 2 |
| 73 | resize_on_border = false |
| 74 | allow_tearing = false |
| 75 | col.active_border = rgba(1b9993ee) |
| 76 | col.inactive_border = rgba(888e8eaa) |
| 77 | layout = master |
| 78 | } |
| 79 | |
| 80 | decoration { |
| 81 | rounding = 0 |
| 82 | |
| 83 | blur { |
| 84 | enabled = true |
| 85 | size = 3 |
| 86 | passes = 1 |
| 87 | } |
| 88 | |
| 89 | # drop_shadow = yes |
| 90 | # shadow_range = 4 |
| 91 | # shadow_render_power = 3 |
| 92 | # col.shadow = rgba(1a1a1aee) |
| 93 | } |
| 94 | |
| 95 | animations { |
| 96 | enabled = yes |
| 97 | bezier = myBezier, 0.05, 0.9, 0.1, 1.05 |
| 98 | animation = windows, 1, 7, myBezier |
| 99 | animation = windowsOut, 1, 7, default, popin 80% |
| 100 | animation = border, 1, 10, default |
| 101 | animation = borderangle, 1, 8, default |
| 102 | animation = fade, 1, 7, default |
| 103 | animation = workspaces, 1, 6, default |
| 104 | } |
| 105 | |
| 106 | # Ref https://wiki.hypr.land/Configuring/Workspace-Rules/ |
| 107 | # "Smart gaps" / "No gaps when only" |
| 108 | # uncomment all if you wish to use that. |
| 109 | # workspace = w[tv1], gapsout:0, gapsin:0 |
| 110 | # workspace = f[1], gapsout:0, gapsin:0 |
| 111 | # windowrule = bordersize 0, floating:0, onworkspace:w[tv1] |
| 112 | # windowrule = rounding 0, floating:0, onworkspace:w[tv1] |
| 113 | # windowrule = bordersize 0, floating:0, onworkspace:f[1] |
| 114 | # windowrule = rounding 0, floating:0, onworkspace:f[1] |
| 115 | |
| 116 | # See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more |
| 117 | dwindle { |
| 118 | pseudotile = true# Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below |
| 119 | preserve_split = true # You probably want this |
| 120 | } |
| 121 | |
| 122 | # See https://wiki.hypr.land/Configuring/Master-Layout/ for more |
| 123 | master { |
| 124 | new_status = master |
| 125 | new_on_top = true |
| 126 | |
| 127 | } |
| 128 | |
| 129 | # https://wiki.hypr.land/Configuring/Variables/#misc |
| 130 | misc { |
| 131 | force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers |
| 132 | disable_hyprland_logo = true# If true disables the random hyprland logo / anime girl background. :( |
| 133 | } |
| 134 | |
| 135 | |
| 136 | ############# |
| 137 | ### INPUT ### |
| 138 | ############# |
| 139 | |
| 140 | # https://wiki.hypr.land/Configuring/Variables/#input |
| 141 | input { |
| 142 | kb_layout = us |
| 143 | kb_variant = |
| 144 | kb_model = |
| 145 | kb_options = |
| 146 | kb_rules = |
| 147 | |
| 148 | follow_mouse = 1 |
| 149 | |
| 150 | sensitivity = 0 # -1.0 - 1.0, 0 means no modification. |
| 151 | |
| 152 | touchpad { |
| 153 | natural_scroll = false |
| 154 | } |
| 155 | |
| 156 | repeat_delay = 300 |
| 157 | repeat_rate = 50 |
| 158 | } |
| 159 | |
| 160 | # https://wiki.hypr.land/Configuring/Variables/#gestures |
| 161 | gestures { |
| 162 | workspace_swipe = false |
| 163 | } |
| 164 | |
| 165 | # Example per-device config |
| 166 | # See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more |
| 167 | device { |
| 168 | name = epic-mouse-v1 |
| 169 | sensitivity = -0.5 |
| 170 | } |
| 171 | |
| 172 | |
| 173 | ################### |
| 174 | ### KEYBINDINGS ### |
| 175 | ################### |
| 176 | |
| 177 | # See https://wiki.hypr.land/Configuring/Keywords/ |
| 178 | $mainMod = SUPER # Sets "Windows" key as main modifier |
| 179 | |
| 180 | # Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more |
| 181 | bind = $mainMod, Return, exec, $terminal |
| 182 | bind = $mainMod SHIFT, X, killactive, |
| 183 | bind = $mainMod SHIFT, Q, exit, |
| 184 | bind = $mainMod, F, Fullscreen |
| 185 | bind = $mainMod SHIFT, R, togglefloating, |
| 186 | bind = $mainMod, R, exec, $menu |
| 187 | bind = $mainMod SHIFT, P, pseudo, # dwindle |
| 188 | bind = $mainMod, J, togglesplit, # dwindle |
| 189 | binde = $mainMod, tab, cyclenext, prev |
| 190 | bind = $mainMod, b, exec, killall waybar || waybar |
| 191 | |
| 192 | # Applications |
| 193 | bind = $mainMod, W, exec, $browser |
| 194 | |
| 195 | # Music Controls |
| 196 | bind = $mainMod, m, exec, $terminal -e "ncmpcpp" |
| 197 | bind = $mainMod, p, exec, mpc toggle |
| 198 | binde = $mainMod, comma, exec, mpc seek -10 |
| 199 | binde = $mainMod, period, exec, mpc seek +10 |
| 200 | |
| 201 | # Swap current focused window with master |
| 202 | bind = $mainMod, space, layoutmsg, swapwithmaster |
| 203 | |
| 204 | # Resize windows with h/j/k/l |
| 205 | binde = $mainMod, h, resizeactive, -30 0 |
| 206 | binde = $mainMod, l, resizeactive, 30 0 |
| 207 | binde = $mainMod, k, resizeactive, 0 -30 |
| 208 | binde = $mainMod, j, resizeactive, 0 30 |
| 209 | |
| 210 | # Switch workspaces with mainMod + [0-9] |
| 211 | bind = $mainMod, 1, split-workspace, 1 |
| 212 | bind = $mainMod, 2, split-workspace, 2 |
| 213 | bind = $mainMod, 3, split-workspace, 3 |
| 214 | bind = $mainMod, 4, split-workspace, 4 |
| 215 | bind = $mainMod, 5, split-workspace, 5 |
| 216 | bind = $mainMod, 6, split-workspace, 6 |
| 217 | bind = $mainMod, 7, split-workspace, 7 |
| 218 | bind = $mainMod, 8, split-workspace, 8 |
| 219 | bind = $mainMod, 9, split-workspace, 9 |
| 220 | bind = $mainMod, 0, split-workspace, 10 |
| 221 | |
| 222 | # Move active window to a workspace with mainMod + SHIFT + [0-9] |
| 223 | bind = $mainMod SHIFT, 1, split-movetoworkspace, 1 |
| 224 | bind = $mainMod SHIFT, 2, split-movetoworkspace, 2 |
| 225 | bind = $mainMod SHIFT, 3, split-movetoworkspace, 3 |
| 226 | bind = $mainMod SHIFT, 4, split-movetoworkspace, 4 |
| 227 | bind = $mainMod SHIFT, 5, split-movetoworkspace, 5 |
| 228 | bind = $mainMod SHIFT, 6, split-movetoworkspace, 6 |
| 229 | bind = $mainMod SHIFT, 7, split-movetoworkspace, 7 |
| 230 | bind = $mainMod SHIFT, 8, split-movetoworkspace, 8 |
| 231 | bind = $mainMod SHIFT, 9, split-movetoworkspace, 9 |
| 232 | bind = $mainMod SHIFT, 0, split-movetoworkspace, 10 |
| 233 | |
| 234 | # Example special workspace (scratchpad) |
| 235 | bind = $mainMod, S, togglespecialworkspace, magic |
| 236 | bind = $mainMod SHIFT, S, movetoworkspace, special:magic |
| 237 | |
| 238 | # Scroll through existing workspaces with mainMod + scroll |
| 239 | bind = $mainMod, mouse_down, workspace, e+1 |
| 240 | bind = $mainMod, mouse_up, workspace, e-1 |
| 241 | |
| 242 | # Move/resize windows with mainMod + LMB/RMB and dragging |
| 243 | bindm = $mainMod, mouse:272, movewindow |
| 244 | bindm = $mainMod, mouse:273, resizewindow |
| 245 | |
| 246 | # Laptop multimedia keys for volume and LCD brightness |
| 247 | bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ |
| 248 | bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- |
| 249 | bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle |
| 250 | bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle |
| 251 | bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ |
| 252 | bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- |
| 253 | |
| 254 | # Requires playerctl |
| 255 | bindl = , XF86AudioNext, exec, playerctl next |
| 256 | bindl = , XF86AudioPause, exec, playerctl play-pause |
| 257 | bindl = , XF86AudioPlay, exec, playerctl play-pause |
| 258 | bindl = , XF86AudioPrev, exec, playerctl previous |
| 259 | |
| 260 | ############################## |
| 261 | ### WINDOWS AND WORKSPACES ### |
| 262 | ############################## |
| 263 | |
| 264 | # See https://wiki.hypr.land/Configuring/Window-Rules/ for more |
| 265 | # See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules |
| 266 | |
| 267 | # Example windowrule |
| 268 | # windowrule = float,class:^(kitty)$,title:^(kitty)$ |
| 269 | |
| 270 | # Ignore maximize requests from apps. You'll probably like this. |
| 271 | windowrule = suppressevent maximize, class:.* |
| 272 | |
| 273 | # Fix some dragging issues with XWayland |
| 274 | windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 |