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