| 1 | source = $HOME/.cache/wal/colors-hyprland.conf |
| 2 | autogenerated = 0 |
| 3 | |
| 4 | ################### |
| 5 | ### MY PROGRAMS ### |
| 6 | ################### |
| 7 | $terminal = footclient |
| 8 | $menu = fuzzel |
| 9 | $browser = librewolf |
| 10 | $passwordmanager = keepmenu |
| 11 | |
| 12 | |
| 13 | ################# |
| 14 | ### AUTOSTART ### |
| 15 | ################# |
| 16 | exec-once = foot --server |
| 17 | exec-once = (hyprpm reload -n & kanshi & waybar & swaync & gammastep & hypridle) |
| 18 | exec-once = ~/.local/bin/setwall -n |
| 19 | exec-once = systemctl --user start hyprpolkitagent |
| 20 | |
| 21 | plugin { |
| 22 | hyprsplit { |
| 23 | num_workspaces = 10 |
| 24 | persistent_workspaces = true |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | ############################# |
| 29 | ### ENVIRONMENT VARIABLES ### |
| 30 | ############################# |
| 31 | # See https://wiki.hypr.land/Configuring/Environment-variables/ |
| 32 | env = HYPRSHOT_DIR,/home/krolyxon/pix/ss/ |
| 33 | env = XCURSOR_SIZE,24 |
| 34 | env = HYPRCURSOR_SIZE,24 |
| 35 | env = GTK_THEME,Arc-Dark |
| 36 | |
| 37 | # XDG Specifications |
| 38 | env = XDG_CURRENT_DESKTOP,Hyprland |
| 39 | env = XDG_SESSION_TYPE,wayland |
| 40 | env = XDG_SESSION_DESKTOP,Hyprland |
| 41 | |
| 42 | # Toolkit |
| 43 | env = GDK_BACKEND,wayland,x11,* # GTK: Use Wayland if available; if not, try X11 and then any other GDK backend. |
| 44 | env = QT_QPA_PLATFORM,wayland;xcb # Qt: Use Wayland if available, fall back to X11 if not |
| 45 | env = SDL_VIDEODRIVER,Wayland # Run SDL2 applications on Wayland. Remove or set to x11 if games that provide older versions of SDL cause compatibility issues |
| 46 | env = CLUTTER_BACKEND,wayland # Clutter applications to try and use the Wayland backend |
| 47 | |
| 48 | # Nvidia |
| 49 | # env = GBM_BACKEND,nvidia-drm |
| 50 | # env = __GLX_VENDOR_LIBRARY_NAME,nvidia |
| 51 | # env = LIBVA_DRIVER_NAME,nvidia |
| 52 | |
| 53 | ####################### |
| 54 | ### PLUGIN SETTINGS ### |
| 55 | ####################### |
| 56 | plugin { |
| 57 | split-monitor-workspaces { |
| 58 | count = 10 |
| 59 | keep_focused = 1 |
| 60 | enable_notifications = 0 |
| 61 | enable_persistent_workspaces = 1 |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | |
| 66 | |
| 67 | ################### |
| 68 | ### PERMISSIONS ### |
| 69 | ################### |
| 70 | ecosystem { |
| 71 | enforce_permissions = 1 |
| 72 | } |
| 73 | |
| 74 | permission = /usr/(bin|local/bin)/grim, screencopy, allow |
| 75 | permission = /usr/(bin|local/bin)/hyprlock, screencopy, allow |
| 76 | permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow |
| 77 | permission = /usr/(bin|local/bin)/hyprpm, plugin, allow |
| 78 | permission = ${lib.escapeRegex (lib.getExe config.programs.hyprlock.package)}, screencopy, allow |
| 79 | |
| 80 | |
| 81 | ##################### |
| 82 | ### LOOK AND FEEL ### |
| 83 | ##################### |
| 84 | general { |
| 85 | gaps_in = 2 |
| 86 | gaps_out = 2 |
| 87 | border_size = 2 |
| 88 | resize_on_border = false |
| 89 | allow_tearing = false |
| 90 | # col.active_border = $color14 $color0 $color0 $color14 45deg |
| 91 | col.active_border = $color14 $color14 $color14 $color14 45deg |
| 92 | col.inactive_border = $color0 $color0 $color0 $color0 45deg |
| 93 | layout = master |
| 94 | } |
| 95 | |
| 96 | decoration { |
| 97 | # rounding = 8 |
| 98 | |
| 99 | |
| 100 | blur { |
| 101 | enabled = false |
| 102 | size = 3 |
| 103 | passes = 1 |
| 104 | } |
| 105 | |
| 106 | |
| 107 | # blur { |
| 108 | # enabled = true |
| 109 | # size = 3 |
| 110 | # passes = 3 |
| 111 | # new_optimizations = true |
| 112 | # vibrancy = 0.1696 |
| 113 | # ignore_opacity = true |
| 114 | # } |
| 115 | } |
| 116 | |
| 117 | animations { |
| 118 | enabled = yes |
| 119 | bezier = myBezier, 0.05, 0.9, 0.1, 1.05 |
| 120 | animation = windows, 1, 2, myBezier |
| 121 | animation = windowsOut, 1, 2, default, popin 80% |
| 122 | animation = border, 1, 10, default |
| 123 | animation = borderangle, 1, 8, default |
| 124 | animation = fade, 1, 7, default |
| 125 | animation = workspaces, 1, 1, default |
| 126 | } |
| 127 | |
| 128 | # Ref https://wiki.hypr.land/Configuring/Workspace-Rules/ |
| 129 | # "Smart gaps" / "No gaps when only" |
| 130 | # uncomment all if you wish to use that. |
| 131 | # workspace = w[tv1], gapsout:0, gapsin:0 |
| 132 | # workspace = f[1], gapsout:0, gapsin:0 |
| 133 | # windowrule = bordersize 0, floating:0, onworkspace:w[tv1] |
| 134 | # windowrule = rounding 0, floating:0, onworkspace:w[tv1] |
| 135 | # windowrule = bordersize 0, floating:0, onworkspace:f[1] |
| 136 | # windowrule = rounding 0, floating:0, onworkspace:f[1] |
| 137 | |
| 138 | # See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more |
| 139 | dwindle { |
| 140 | pseudotile = true# Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below |
| 141 | preserve_split = true # You probably want this |
| 142 | } |
| 143 | |
| 144 | # See https://wiki.hypr.land/Configuring/Master-Layout/ for more |
| 145 | master { |
| 146 | new_status = master |
| 147 | new_on_top = true |
| 148 | |
| 149 | } |
| 150 | |
| 151 | # https://wiki.hypr.land/Configuring/Variables/#misc |
| 152 | misc { |
| 153 | force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers |
| 154 | disable_hyprland_logo = true# If true disables the random hyprland logo / anime girl background. :( |
| 155 | disable_splash_rendering = true |
| 156 | |
| 157 | mouse_move_enables_dpms = true |
| 158 | key_press_enables_dpms = true |
| 159 | |
| 160 | vrr = 0 # Disable adaptive sync |
| 161 | } |
| 162 | |
| 163 | |
| 164 | ############# |
| 165 | ### INPUT ### |
| 166 | ############# |
| 167 | |
| 168 | # https://wiki.hypr.land/Configuring/Variables/#input |
| 169 | input { |
| 170 | kb_layout = us |
| 171 | kb_variant = |
| 172 | kb_model = |
| 173 | kb_options = |
| 174 | kb_rules = |
| 175 | |
| 176 | follow_mouse = 1 |
| 177 | |
| 178 | sensitivity = 0 # -1.0 - 1.0, 0 means no modification. |
| 179 | |
| 180 | touchpad { |
| 181 | natural_scroll = false |
| 182 | } |
| 183 | |
| 184 | repeat_delay = 300 |
| 185 | repeat_rate = 50 |
| 186 | } |
| 187 | |
| 188 | # Example per-device config |
| 189 | # See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more |
| 190 | device { |
| 191 | name = epic-mouse-v1 |
| 192 | sensitivity = -0.5 |
| 193 | } |
| 194 | |
| 195 | |
| 196 | ################### |
| 197 | ### KEYBINDINGS ### |
| 198 | ################### |
| 199 | |
| 200 | # See https://wiki.hypr.land/Configuring/Keywords/ |
| 201 | $mainMod = SUPER # Sets "Windows" key as main modifier |
| 202 | |
| 203 | # Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more |
| 204 | bind = $mainMod, Return, exec, $terminal |
| 205 | bind = $mainMod SHIFT, X, killactive, |
| 206 | bind = $mainMod SHIFT, Q, exit, |
| 207 | bind = $mainMod, F, Fullscreen |
| 208 | bind = $mainMod SHIFT, F, Fullscreen, 1 |
| 209 | bind = $mainMod SHIFT, R, togglefloating, |
| 210 | bind = $mainMod, R, exec, $menu |
| 211 | bind = $mainMod SHIFT, P, pseudo, # dwindle |
| 212 | bind = $mainMod, J, togglesplit, # dwindle |
| 213 | binde = $mainMod, tab, cyclenext, prev |
| 214 | bind = $mainMod, b, exec, killall waybar || waybar |
| 215 | bind = $mainMod, grave, exec, fuzzelunicode |
| 216 | bind = $mainMod, escape, exec, sysact |
| 217 | |
| 218 | # Applications |
| 219 | bind = $mainMod, W, exec, $browser |
| 220 | bind = $mainMod SHIFT, p, exec, $passwordmanager -C |
| 221 | bind = ,PRINT, exec, screenshot |
| 222 | |
| 223 | # Music Controls |
| 224 | bind = $mainMod, m, exec, $terminal -e zsh -i -c "ncmpcpp" |
| 225 | bind = $mainMod, p, exec, playerctl play-pause |
| 226 | binde = $mainMod, period, exec, mpc seek +10 |
| 227 | binde = $mainMod, comma, exec, mpc seek -10 |
| 228 | bind = $mainMod SHIFT, period, exec, playerctl next |
| 229 | bind = $mainMod SHIFT, comma, exec, playerctl previous |
| 230 | |
| 231 | # Swap current focused window with master |
| 232 | bind = $mainMod, space, layoutmsg, swapwithmaster |
| 233 | |
| 234 | # Resize windows with h/j/k/l |
| 235 | binde = $mainMod, h, resizeactive, -30 0 |
| 236 | binde = $mainMod, l, resizeactive, 30 0 |
| 237 | binde = $mainMod, k, resizeactive, 0 -30 |
| 238 | binde = $mainMod, j, resizeactive, 0 30 |
| 239 | |
| 240 | # Switch workspaces with mainMod + [0-9] |
| 241 | bind = $mainMod, 1, split-workspace, 1 |
| 242 | bind = $mainMod, 2, split-workspace, 2 |
| 243 | bind = $mainMod, 3, split-workspace, 3 |
| 244 | bind = $mainMod, 4, split-workspace, 4 |
| 245 | bind = $mainMod, 5, split-workspace, 5 |
| 246 | bind = $mainMod, 6, split-workspace, 6 |
| 247 | bind = $mainMod, 7, split-workspace, 7 |
| 248 | bind = $mainMod, 8, split-workspace, 8 |
| 249 | bind = $mainMod, 9, split-workspace, 9 |
| 250 | bind = $mainMod, 0, split-workspace, 10 |
| 251 | |
| 252 | # Move active window to a workspace with mainMod + SHIFT + [0-9] |
| 253 | bind = $mainMod SHIFT, 1, split-movetoworkspacesilent, 1 |
| 254 | bind = $mainMod SHIFT, 2, split-movetoworkspacesilent, 2 |
| 255 | bind = $mainMod SHIFT, 3, split-movetoworkspacesilent, 3 |
| 256 | bind = $mainMod SHIFT, 4, split-movetoworkspacesilent, 4 |
| 257 | bind = $mainMod SHIFT, 5, split-movetoworkspacesilent, 5 |
| 258 | bind = $mainMod SHIFT, 6, split-movetoworkspacesilent, 6 |
| 259 | bind = $mainMod SHIFT, 7, split-movetoworkspacesilent, 7 |
| 260 | bind = $mainMod SHIFT, 8, split-movetoworkspacesilent, 8 |
| 261 | bind = $mainMod SHIFT, 9, split-movetoworkspacesilent, 9 |
| 262 | bind = $mainMod SHIFT, 0, split-movetoworkspacesilent, 10 |
| 263 | |
| 264 | # Example special workspace (scratchpad) |
| 265 | bind = $mainMod, S, togglespecialworkspace, magic |
| 266 | bind = $mainMod SHIFT, S, movetoworkspace, special:magic |
| 267 | |
| 268 | # Have scratchpad like DWM which opens alacritty in special workspace |
| 269 | workspace = special:h, on-created-empty: footclient |
| 270 | bind = $mainMod SHIFT, Return, togglespecialworkspace, h |
| 271 | |
| 272 | |
| 273 | # Scroll through existing workspaces with mainMod + scroll |
| 274 | bind = $mainMod, mouse_down, workspace, e+1 |
| 275 | bind = $mainMod, mouse_up, workspace, e-1 |
| 276 | |
| 277 | # Move/resize windows with mainMod + LMB/RMB and dragging |
| 278 | bindm = $mainMod, mouse:272, movewindow |
| 279 | bindm = $mainMod, mouse:273, resizewindow |
| 280 | |
| 281 | # Laptop multimedia keys for volume and LCD brightness |
| 282 | bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ |
| 283 | bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- |
| 284 | bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle |
| 285 | bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle |
| 286 | bindel = , XF86MonBrightnessDown, exec, ~/.local/bin/brictl - |
| 287 | bindel = , XF86MonBrightnessUp, exec, ~/.local/bin/brictl + |
| 288 | |
| 289 | |
| 290 | # Requires playerctl |
| 291 | bindl = , XF86AudioNext, exec, playerctl next |
| 292 | bindl = , XF86AudioPause, exec, playerctl play-pause |
| 293 | bindl = , XF86AudioPlay, exec, playerctl play-pause |
| 294 | bindl = , XF86AudioPrev, exec, playerctl previous |
| 295 | |
| 296 | ############################## |
| 297 | ### WINDOWS AND WORKSPACES ### |
| 298 | ############################## |
| 299 | |
| 300 | # See https://wiki.hypr.land/Configuring/Window-Rules/ for more |
| 301 | # See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules |
| 302 | |
| 303 | # Example windowrule |
| 304 | # windowrule = float,class:^(kitty)$,title:^(kitty)$ |
| 305 | |
| 306 | # Ignore maximize requests from apps. You'll probably like this. |
| 307 | windowrule = suppressevent maximize, class:.* |
| 308 | |
| 309 | # Fix some dragging issues with XWayland |
| 310 | windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 |