further configure hyprland

This commit is contained in:
Johannes Knopp
2025-09-07 20:17:11 +02:00
parent 465634d8bf
commit ee6855f2ce
13 changed files with 352 additions and 2496 deletions

View File

@ -4,9 +4,10 @@
# See https://wiki.hypr.land/Configuring/Monitors/
monitor=,preferred,auto,auto
monitor = DP-2, 2560x1440@165, 0x0, 1
monitor = DP-1, 2560x1440@165, 2560x0, 1
monitor = HDMI-A-2, 1920x1080@60, 5120x-360, 1, transform, 3
source = ./monitors.conf
# monitor = DP-2, 2560x1440@165, 0x0, 1
# monitor = DP-1, 2560x1440@165, 2560x0, 1
# monitor = HDMI-A-2, 1920x1080@60, 5120x-360, 1, transform, 3
workspace = 1, monitor:DP-1, persistent:true, default:true
workspace = 4, monitor:DP-1, persistent:true
@ -50,7 +51,7 @@ workspace = 30, monitor:DP-2, persistent:true
# Set programs that you use
$terminal = ghostty
$fileManager = dolphin
$fileManager = thunar
$menu = wofi --show drun
#################
@ -82,6 +83,10 @@ env = CLUTTER_BACKEND,wayland
env = SDL_VIDEODRIVER,wayland,x11
env = GDK_BACKEND,wayland,x11
# jetbrains
env = _JAVA_AWT_WM_NONREPARENTING, 1
# env = AWT_TOOLKIT, MToolkit
###################
### PERMISSIONS ###
###################
@ -103,8 +108,6 @@ env = GDK_BACKEND,wayland,x11
### LOOK AND FEEL ###
#####################
# Refer to https://wiki.hypr.land/Configuring/Variables/
# https://wiki.hypr.land/Configuring/Variables/#general
general {
gaps_in = 5
@ -115,6 +118,11 @@ general {
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
# Active: cosmic purple -> neon cyan gradient
# col.active_border = rgba(7f5af0ee) rgba(00d1ffee) 45deg
#
# # Inactive: deep space slate
# col.inactive_border = rgba(0c0e14aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false
@ -125,32 +133,49 @@ general {
layout = dwindle
}
# https://wiki.hypr.land/Configuring/Variables/#decoration
# --- Decorations / cosmic glass ---
decoration {
rounding = 10
rounding_power = 2
rounding = 12
active_opacity = 1.0
inactive_opacity = 0.96
fullscreen_opacity = 1.0
# Change transparency of focused and unfocused windows
active_opacity = 1.0
inactive_opacity = 1.0
# Shadows (new nested syntax)
shadow {
enabled = true
range = 20 # size of the shadow
render_power = 3 # 14, higher = faster falloff
color = rgba(0, 0, 0, 0.35)
offset = 0 6 # optional: drop slightly downward
scale = 1.0
}
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
# https://wiki.hypr.land/Configuring/Variables/#blur
blur {
enabled = true
size = 3
passes = 1
vibrancy = 0.1696
}
# Blur (nested)
blur {
enabled = true
size = 8
passes = 3
new_optimizations = true
noise = 0.02
contrast = 1.00
brightness = 1.00
vibrancy = 0.18
xray = true
}
}
# wofi
layerrule = blur, wofi # apply compositor blur
layerrule = ignorezero, wofi # keep blur even on near-opaque colors
layerrule = dimaround, wofi # optional: dim background behind wofi
layerrule = ignorealpha 0.90, wofi # target overall opacity for the layer
# waybar
layerrule = blur, waybar
layerrule = ignorealpha 0.15, waybar
# https://wiki.hypr.land/Configuring/Variables/#animations
animations {
enabled = yes, please :)
@ -248,7 +273,7 @@ bind = $mainMod, T, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod, N, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu
bind = $mainMod, Space, exec, $menu
bind = $mainMod, G, togglesplit, # dwindle
bind = $mainMod, F, fullscreen
bind = $mainMod, B, exec, firefox
@ -323,69 +348,6 @@ bind = SUPER, 0, exec, hyprctl --batch " \
dispatch focusmonitor HDMI-A-2; dispatch workspace 30; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 1, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 1; \
dispatch focusmonitor DP-2; dispatch workspace 2; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 3; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 2, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 4; \
dispatch focusmonitor DP-2; dispatch workspace 5; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 6; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 3, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 7; \
dispatch focusmonitor DP-2; dispatch workspace 8; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 9; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 4, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 10; \
dispatch focusmonitor DP-2; dispatch workspace 11; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 12; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 5, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 13; \
dispatch focusmonitor DP-2; dispatch workspace 14; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 15; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 6, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 16; \
dispatch focusmonitor DP-2; dispatch workspace 17; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 18; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 7, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 19; \
dispatch focusmonitor DP-2; dispatch workspace 20; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 21; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 8, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 22; \
dispatch focusmonitor DP-2; dispatch workspace 23; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 24; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 9, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 25; \
dispatch focusmonitor DP-2; dispatch workspace 26; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 27; \
dispatch focusmonitor DP-1"
bind = SUPER SHIFT, 0, exec, hyprctl --batch " \
dispatch focusmonitor DP-1; dispatch workspace 28; \
dispatch focusmonitor DP-2; dispatch workspace 29; \
dispatch focusmonitor HDMI-A-2; dispatch workspace 30; \
dispatch focusmonitor DP-1"
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 4
bind = $mainMod SHIFT, 3, movetoworkspace, 7
@ -444,12 +406,12 @@ bind = , Print, exec, hyprshot -zm region
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule
# windowrule = float,class:^(kitty)$,title:^(kitty)$
# Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
windowrulev2 = tag +jb, class:^jetbrains-.+$,floating:1
windowrulev2 = stayfocused, tag:jb
windowrulev2 = noinitialfocus, tag:jb