dotfiles/hypr/hyprlandd.conf

302 lines
7.5 KiB
Plaintext
Raw Normal View History

2024-06-25 04:13:51 -05:00
source = ~/.config/hypr/mocha.conf # Catppuccin colorscheme
# < Start Section >
# monitors
2024-09-14 00:04:44 -05:00
monitor=WL-1, 1920x1080@144, 0x0, 1, vrr, 1
2024-06-25 04:13:51 -05:00
2024-09-14 00:04:44 -05:00
# < End Section >
# < Start Section >
# environment variables
env = xdg_current_desktop,hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
env = MOZ_ENABLE_WAYLAND,1
env = HYPRCURSOR_THEME, rose-pine-hyprcursor
env = HYPRCURSOR_SIZE, 24
# Trace logging
#env = HYPRLAND_TRACE,1
#env = AQ_TRACE,1
2024-06-25 04:13:51 -05:00
# < End Section >
# < Start Section >
# startup applications
2024-09-14 00:04:44 -05:00
exec-once = discord
2024-06-25 04:13:51 -05:00
exec-once = alacritty
2024-09-14 00:04:44 -05:00
# exit applications
2024-06-25 04:13:51 -05:00
# < End Section >
# < Start Section >
# workspace rules
# < End Section >
# < Start Section >
# variables
general {
gaps_in = 0
2024-09-14 00:04:44 -05:00
gaps_out = 8
border_size = 3
2024-06-25 04:13:51 -05:00
col.active_border = $peach
#col.inactive_border = $peach
layout = dwindle
resize_on_border = false
}
decoration {
rounding = 6
drop_shadow = false
dim_special = 0.3
fullscreen_opacity = 1.0
blur {
enabled = yes
special = true
size = 6
passes = 3
new_optimizations = on
ignore_opacity = on
xray = false
}
}
animations {
enabled = yes
bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1
animation = windows, 1, 6, wind, slide
animation = windowsIn, 1, 6, winIn, slide
animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 1, liner
animation = borderangle, 1, 30, liner, loop
animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
}
input {
kb_layout = us
2024-09-14 00:04:44 -05:00
kb_options = caps:escape
2024-06-25 04:13:51 -05:00
follow_mouse = 2
mouse_refocus = false;
sensitivity = -.75 # -1.0 - 1.0, 0 means no modification.
force_no_accel = 1
}
group {
col.border_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.border_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
col.border_locked_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.border_locked_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
vrr = 1
vfr = true
2024-09-14 00:04:44 -05:00
middle_click_paste = false
2024-06-25 04:13:51 -05:00
}
xwayland {
2024-09-14 00:04:44 -05:00
enabled = true
use_nearest_neighbor = true
force_zero_scaling = false
2024-06-25 04:13:51 -05:00
}
cursor {
no_hardware_cursors = true
inactive_timeout = 2
no_warps = false
default_monitor = DP-1
}
debug {
2024-09-14 00:04:44 -05:00
#disable_logs = true
disable_logs = false
watchdog_timeout = 0
2024-06-25 04:13:51 -05:00
}
2024-09-14 00:04:44 -05:00
render {
explicit_sync = 1
explicit_sync_kms = 1
direct_scanout = true
}
2024-06-25 04:13:51 -05:00
# < End Section >
# < Start Section >
# dwindle layout
dwindle {
pseudotile = yes
preserve_split = yes
}
# < End Section >
# < Start Section >
# master layout
master {
2024-09-14 00:04:44 -05:00
new_status = master
2024-06-25 04:13:51 -05:00
}
# < End Section >
# < Start Section >
# window rules
2024-09-14 00:04:44 -05:00
# core
2024-06-25 04:13:51 -05:00
windowrulev2 = opacity 0.80 0.80,class:^(.*)$
windowrulev2 = opacity 0.80 0.70,class:^(pavucontrol)$
windowrulev2 = opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float, class:^(qt5ct)$
windowrulev2 = float, class:^(nwg-look)$
windowrulev2 = float, class:^(pavucontrol)$
windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$
2024-09-14 00:04:44 -05:00
# main
2024-06-25 04:13:51 -05:00
windowrulev2 = workspace 1 silent, class:^(discord)$
2024-09-14 00:04:44 -05:00
windowrulev2 = workspace 1 silent, class:^(vesktop)$
windowrulev2 = workspace 1 silent, class:^(Dopamine)$
#windowrulev2 = workspace 1 silent, class:^(Spotify)$
windowrulev2 = workspace 1 silent, initialTitle:^(Spotify Premium)$
2024-06-25 04:13:51 -05:00
windowrulev2 = workspace 2 silent, class:^(Alacritty)$
windowrulev2 = workspace 3 silent, class:^(firefox)$
2024-09-14 00:04:44 -05:00
windowrulev2 = workspace 3 silent, class:^(firefox-nightly)$
2024-06-25 04:13:51 -05:00
windowrulev2 = workspace 4 silent, class:^(steam)$
2024-09-14 00:04:44 -05:00
windowrulev2 = workspace 4 silent, class:^(org.prismlauncher.PrismLauncher)$
windowrulev2 = workspace 4 silent, title:^(Minecraft.*)$
windowrulev2 = workspace 4 silent, class:^(steam_app_.*)$
windowrulev2 = workspace 4 silent, class:^(steam_proton)$
windowrulev2 = workspace 4 silent, class:^(hl2_linux)$
windowrulev2 = workspace 4 silent, class:^(gamescope)$
2024-06-25 04:13:51 -05:00
windowrulev2 = workspace 5 silent, class:^(Bolt.*)$
2024-09-14 00:04:44 -05:00
windowrulev2 = workspace 6 silent, class:^(steam)$
2024-06-25 04:13:51 -05:00
2024-09-14 00:04:44 -05:00
# development
windowrulev2 = float, title:^(SnakePlusPlus)$
2024-06-25 04:13:51 -05:00
windowrulev2 = center, title:^(SnakePlusPlus)$
windowrulev2 = opacity 0.4, title:^(SnakePlusPlus)$
windowrulev2 = float, title:^(TetrisPlusPlus)$
windowrulev2 = center, title:^(TetrisPlusPlus)$
2024-09-14 00:04:44 -05:00
# games
2024-06-25 04:13:51 -05:00
# 16:9 windowed - 1920 1080
# 21:9 windowed - 2560 1080
# 32:9 windowed - 3200 900
2024-09-14 00:04:44 -05:00
# theoretical mix - 3200 1100
# alternative - 2660 1140
# runelite
2024-06-25 04:13:51 -05:00
windowrulev2 = opacity 1.00 override 1.00 override, class:^(net-runelite-client-RuneLite)$
windowrulev2 = pseudo, class:^(net-runelite-client-RuneLite)$
windowrulev2 = size 825 520, class:^(net-runelite-client-RuneLite)$
2024-09-14 00:04:44 -05:00
# minecraft
windowrulev2 = opacity 1.00 override 1.00 override, title:^(Minecraft.*)$
windowrulev2 = pseudo, title:^(Minecraft.*)$
windowrulev2 = size 3200 1100, title:^(Minecraft.*)$
# native
2024-06-25 04:13:51 -05:00
windowrulev2 = opacity 1.00 override 1.00 override, class:^(steam_app_.*)$
windowrulev2 = pseudo, class:^(steam_app_.*)$
#windowrulev2 = size 3200 900, class:^(steam_app_.*)$
2024-09-14 00:04:44 -05:00
# proton
2024-06-25 04:13:51 -05:00
windowrulev2 = opacity 1.00 override 1.00 override, class:^(steam_proton)$
windowrulev2 = pseudo, class:^(steam_proton)$
#windowrulev2 = size 3200 900, class:^(steam_proton)$
2024-09-14 00:04:44 -05:00
# hl2 (css, etc)
2024-06-25 04:13:51 -05:00
windowrulev2 = opacity 1.00 override 1.00 override, class:^(hl2_linux)$
2024-09-14 00:04:44 -05:00
# gamescope
windowrulev2 = opacity 1.00 override 1.00 override, class:^(gamescope)$
windowrulev2 = pseudo, class:^(gamescope)$
windowrulev2 = size 3200 1100, class:^(gamescope)$
2024-06-25 04:13:51 -05:00
# layer rules
layerrule = blur,waybar
layerrule = ignorezero, waybar
2024-09-14 00:04:44 -05:00
# xwaylandvideobridge
windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$
windowrulev2 = noblur,class:^(xwaylandvideobridge)$
2024-06-25 04:13:51 -05:00
# < End Section >
# < Start Section >
2024-09-14 00:04:44 -05:00
# keybinds
2024-06-25 04:13:51 -05:00
# main modifier
2024-09-14 00:04:44 -05:00
$mainMod = ALT
2024-06-25 04:13:51 -05:00
# core binds
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod SHIFT, M, exit
bind = $mainMod, SPACE, togglefloating,
2024-09-14 00:04:44 -05:00
bind = $mainMod, C, centerwindow
2024-06-25 04:13:51 -05:00
bind = $mainMod, F, fullscreen,
bind = $mainMod SHIFT, L, exec, hyprlock
bind = $mainMod $CONTROL, ESCAPE, exec, killall waybar || waybar # toggle waybar
bind = $mainMod SHIFT, J, togglesplit, # dwindle
bind = $mainMod SHIFT, SPACE, pseudo, # dwindle
# main application shortcuts
bind = $mainMod, RETURN, exec, alacritty
bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy
bind = $mainMod SHIFT, 7, exec, taskset -c 1-7 prismlauncher
bind = $mainMod, S, exec, pkill -x rofi || rofi -show drun
# move focus
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
# workspaces
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
# resizing windows
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# < End Section >