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