From: Andre Ramnitz Date: Thu, 26 Feb 2026 06:43:27 +0000 (+0100) Subject: hypr: update config X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=8d09237e9f293495fd5acf02bb2815e7e421c1b0;p=dotfiles.git hypr: update config --- diff --git a/dot-config/hypr/fragments/env.conf b/dot-config/hypr/fragments/env.conf index 0124b462..3772baac 100644 --- a/dot-config/hypr/fragments/env.conf +++ b/dot-config/hypr/fragments/env.conf @@ -13,7 +13,7 @@ env = QT_QPA_PLATFORMTHEME,kde env = GDK_BACKEND,wayland,x11,* env = GTK_USE_PORTAL,1 env = MOZ_ENABLE_WAYLAND,1 -env = SDL_VIDEODRIVER,wayland # remove or set to x11 for games providing older versions of SDL +# env = SDL_VIDEODRIVER,wayland # remove or set to x11 for games providing older versions of SDL env = CLUTTER_BACKEND,wayland # tweak swww diff --git a/dot-config/hypr/fragments/keybinds.conf b/dot-config/hypr/fragments/keybinds.conf index 64c89145..38cc92de 100644 --- a/dot-config/hypr/fragments/keybinds.conf +++ b/dot-config/hypr/fragments/keybinds.conf @@ -3,18 +3,21 @@ # ░█▀█░░█░░█▀▀░█▀▄░█░░░█▀█░█░█░█░█░░░█░░░█░█░█░█░█▀▀░░█░░█░█ # ░▀░▀░░▀░░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀ -# modifiers +# modifiers & variables # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── $suremod = SUPER ALT CTRL $mainmod = SUPER +$fallbackterm = konsole +$term = foot +$floatterm = foot -o pad=0x0 -a popup # mainmod shortcuts # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── # example: bind = $mainmod Shift, Return, exec, [float; size 1280 800;] foot -o pad=0x0 -bind = $mainmod, Return, exec, footclient -bind = $mainmod Ctrl, Return, exec, foot -bind = $mainmod Shift, Return, exec, foot -w 1280x800 -o pad=0x0 -a popup +bind = $mainmod, Return, exec, $term +bind = $mainmod Ctrl, Return, exec, $fallbackterm +bind = $mainmod Shift, Return, exec, $floatterm bind = $mainmod Shift, Q, killactive, bind = $mainmod, A, pseudo, # dwindle, A for Artificial bind = $mainmod, B, exec, $HOME/.config/hypr/scripts/browser_focus_or_run.sh @@ -45,23 +48,6 @@ bind = $mainmod, C, centerwindow # scratchpad bind = $mainmod, I, togglespecialworkspace, overlay bind = $mainmod SHIFT, I, movetoworkspace, special:overlay -# virtually minimalized windows -bind = $mainmod, M, togglespecialworkspace, magic -bind = $mainmod, M, movetoworkspace, +0 -bind = $mainmod, M, togglespecialworkspace, magic -bind = $mainmod, M, movetoworkspace, special:magic -bind = $mainmod, M, togglespecialworkspace, magic -bind = $mainmod SHIFT, M, togglespecialworkspace, sorcery -bind = $mainmod SHIFT, M, movetoworkspace, +0 -bind = $mainmod SHIFT, M, togglespecialworkspace, sorcery -bind = $mainmod SHIFT, M, movetoworkspace, special:sorcery -bind = $mainmod SHIFT, M, togglespecialworkspace, sorcery -bind = CTRL ALT, K, togglespecialworkspace, keys -bind = CTRL ALT, K, movetoworkspace, +0 -bind = CTRL ALT, K, togglespecialworkspace, keys -bind = CTRL ALT, K, movetoworkspace, special:keys -bind = CTRL ALT, K, togglespecialworkspace, keys - # suremod keys (prevent fat-fingering 'em by accident) # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── @@ -115,14 +101,14 @@ bind = $mainmod SHIFT, K, exec, $HOME/.config/hypr/scripts/move bind = $mainmod SHIFT, J, exec, $HOME/.config/hypr/scripts/moveorswapwindow.sh $moveAmount d # Move windows into or out of groups with $suremod -bind = $mainmod CTRL, left, movewindoworgroup, l -bind = $mainmod CTRL, right, movewindoworgroup, r -bind = $mainmod CTRL, up, movewindoworgroup, u -bind = $mainmod CTRL, down, movewindoworgroup, d -bind = $mainmod CTRL, H, movewindoworgroup, l -bind = $mainmod CTRL, L, movewindoworgroup, r -bind = $mainmod CTRL, K, movewindoworgroup, u -bind = $mainmod CTRL, J, movewindoworgroup, d +bind = $mainmod SHIFT CTRL, left, movewindoworgroup, l +bind = $mainmod SHIFT CTRL, right, movewindoworgroup, r +bind = $mainmod SHIFT CTRL, up, movewindoworgroup, u +bind = $mainmod SHIFT CTRL, down, movewindoworgroup, d +bind = $mainmod SHIFT CTRL, H, movewindoworgroup, l +bind = $mainmod SHIFT CTRL, L, movewindoworgroup, r +bind = $mainmod SHIFT CTRL, K, movewindoworgroup, u +bind = $mainmod SHIFT CTRL, J, movewindoworgroup, d # preselect direction for new windows bind = ALT CTRL, left, layoutmsg, preselect l diff --git a/dot-config/hypr/fragments/windowrules.conf b/dot-config/hypr/fragments/windowrules.conf index b58d7909..b0f63dda 100644 --- a/dot-config/hypr/fragments/windowrules.conf +++ b/dot-config/hypr/fragments/windowrules.conf @@ -153,6 +153,7 @@ windowrule { windowrule { name = popup_class float = on + size = 1280 800 match:class = ^(popup)$ } diff --git a/dot-config/hypr/hypridle.conf b/dot-config/hypr/hypridle.conf index 22f2f84b..03a27467 100644 --- a/dot-config/hypr/hypridle.conf +++ b/dot-config/hypr/hypridle.conf @@ -24,18 +24,21 @@ general { # } listener { - timeout = 1200 # 20min + # timeout = 1200 # 20min + timeout = 300 # 5min on-timeout = loginctl lock-session # lock screen when timeout has passed } listener { - timeout = 2400 # 45min + # timeout = 2400 # 45min + timeout = 600 # 10min on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. } listener { - timeout = 3600 # 90min + # timeout = 3600 # 90min + timeout = 1200 # 20min on-timeout = loginctl suspend # suspend pc # on-resume = openrgb -p default # reset lighting on resume } diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index 9cc5a824..db24dd3c 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -24,22 +24,19 @@ monitorv2 { monitor=,preferred,auto-center-right,1,vrr,2 # Execute your favorite apps at launch -# exec-once = ~/.config/hypr/scripts/startup.sh # exec-once = dbus-update-activation-environment --systemd --all exec-once = /usr/libexec/pam_kwallet_init exec-once = hyprpm reload exec-once = openrc --user hyprland # AFTER pam_kwallet_init!!! # exec-once = env XDG_MENU_PREFIX=plasma- kbuildsycoca6 -# exec-once = matugen -m light image /media/multimedia/Wallpapers/7680x2160-purpleclouds.webp # Unset variables on exit -# exec-shutdown = lastwall save exec-shutdown = openrc --user default # exec-shutdown = setenv WAYLAND_DISPLAY= XDG_SESSION_TYPE= XDG_CURRENT_DESKTOP= general { allow_tearing = 1 - border_size = 3 + border_size = 2 gaps_in = 5 gaps_out = 10 snap { @@ -50,7 +47,7 @@ general { } layout = dwindle # col.nogroup_border = $surface - # col.nogroup_border_active = $secondary + # col.nogroup_border_active = $error } dwindle { @@ -75,6 +72,7 @@ master { } decoration { + # screen_shader = ~/.config/hypr/shaders/bluefilter.frag rounding = 8 rounding_power = 3 dim_special = 0.3 @@ -84,15 +82,15 @@ decoration { enabled = 1 special = 1 popups = 0 - size = 3 - passes = 2 + size = 1 + passes = 1 noise = 0.0117 contrast = 0.8916 brightness = 0.8172 vibrancy = 0.1696 - vibrancy_darkness = 0.0 + vibrancy_darkness = 0.1 ignore_opacity = 1 - } + } shadow { enabled = 1 range = 4 @@ -105,6 +103,7 @@ decoration { } input { + numlock_by_default = 1 kb_layout = us,de kb_variant = de_se_fi, kb_model = @@ -143,21 +142,21 @@ group { groupbar { enabled = 1 font_family = IBM Plex Sans - font_size = 15 + font_size = 14 font_weight_active = medium font_weight_inactive = medium # text_color = 0xffefefef # text_color_inactive = 0xff6f6f6f - height = 21 + height = 10 scrolling = 1 indicator_gap = 0 indicator_height = 0 - render_titles = 1 + render_titles = 0 priority = 3 round_only_edges = 1 gradients = 1 - gradient_rounding = 12 - gradient_rounding_power = 3 + gradient_rounding = 5 + gradient_rounding_power = 2 gradient_round_only_edges = 0 stacked = 0 gaps_in = 2 @@ -177,9 +176,8 @@ misc { allow_session_lock_restore = 1 initial_workspace_tracking = 1 font_family = ZedMono NFP - enable_swallow = 0 - swallow_regex = class:^((Alacritty|kitty|foot|footclient|konsole).*)$ - swallow_exception_regex = class:^((popup).*$ + enable_swallow = 1 + swallow_regex = ^(foot)$ size_limits_tiled = 0 session_lock_xray = 1 on_focus_under_fullscreen = 1 @@ -227,7 +225,7 @@ debug { plugin { hyprbars { - bar_text_font = IBM Plex Sans + bar_text_font = ZedMono NFP bar_text_size = 11 bar_height = 21 bar_color = rgb(101010) @@ -249,3 +247,6 @@ source=./fragments/workspacerules.conf source=./fragments/layerrules.conf source=./fragments/keybinds.conf + +source = /home/andy/.config/hypr/noctalia/noctalia-colors.conf + diff --git a/dot-config/hypr/hyprqt6engine.conf b/dot-config/hypr/hyprqt6engine.conf index 6ab5b8af..269cd713 100644 --- a/dot-config/hypr/hyprqt6engine.conf +++ b/dot-config/hypr/hyprqt6engine.conf @@ -6,7 +6,7 @@ theme { color_scheme = style = Breeze - font_fixed = BlexMono Nerd Font Propo + font_fixed = ZedMono Nerd Font Propo font_fixed_size = 11 font = IBM Plex Sans font_size = 11 diff --git a/dot-config/hypr/hyprtoolkit.conf b/dot-config/hypr/hyprtoolkit.conf new file mode 100644 index 00000000..33650f0c --- /dev/null +++ b/dot-config/hypr/hyprtoolkit.conf @@ -0,0 +1,7 @@ +background = rgba(1c1822ff) +base = rgba(1c1822ff) +text = rgba(e9e4f0ff) +alternate_base = rgba(262130ff) +bright_text = rgba(f3edf7ff) +accent = rgba(c7a1d8ff) +accent_secondary = rgba(a984c4ff) \ No newline at end of file diff --git a/dot-config/hypr/scripts/gamemode.sh b/dot-config/hypr/scripts/gamemode.sh index b5b7b940..cbb1a0f3 100755 --- a/dot-config/hypr/scripts/gamemode.sh +++ b/dot-config/hypr/scripts/gamemode.sh @@ -5,14 +5,14 @@ if [ "$HYPRGAMEMODE" = 1 ] ; then keyword animations:enabled 0;\ keyword decoration:shadow:enabled 0;\ keyword decoration:blur:enabled 0;\ - keyword general:gaps_in 0;\ - keyword general:gaps_out 0;\ - keyword general:border_size 2;\ + # keyword general:gaps_in 0;\ + # keyword general:gaps_out 0;\ + keyword general:border_size 1;\ keyword decoration:rounding 0;\ keyword group:groupbar:gradient_rounding 0;\ keyword group:groupbar:rounding 0;\ - keyword input:force_no_accel 1;\ - keyword input:follow mouse 0;" + # keyword input:force_no_accel 1;\ + keyword input:follow_mouse 0;" # sunsetr p gamemode echo on > "$HOME/.cache/hyprgamemode" exit diff --git a/dot-config/hypr/shaders/web1.frag b/dot-config/hypr/shaders/web1.frag new file mode 100644 index 00000000..11503588 --- /dev/null +++ b/dot-config/hypr/shaders/web1.frag @@ -0,0 +1,25 @@ +// vim: set ft=glsl: +// chromatic + +precision highp float; +varying highp vec2 v_texcoord; +uniform highp sampler2D tex; + +#define STRENGTH 0.035 + +void main() { + vec2 center = vec2(0.5); + vec2 offset = (v_texcoord - center) * STRENGTH; + + float r2 = dot(offset, offset); + vec2 distortion = offset * (0.05 + r2); + + // Separate only R and B + vec4 base = texture2D(tex, v_texcoord); + float r = texture2D(tex, v_texcoord + distortion).r; + float b = texture2D(tex, v_texcoord - distortion).b; + + // Keep green untouched + gl_FragColor = vec4(r, base.g, b, base.a); +} + diff --git a/dot-config/hypr/shaders/web2.frag b/dot-config/hypr/shaders/web2.frag new file mode 100644 index 00000000..afa1c9d7 --- /dev/null +++ b/dot-config/hypr/shaders/web2.frag @@ -0,0 +1,12 @@ +// vim: set ft=glsl: + +precision mediump float; + +varying vec2 v_texcoord; +uniform sampler2D tex; + +void main() { + vec4 c = texture2D(tex, v_texcoord); + float g = (c.r + c.g + c.b) / 3.0; + gl_FragColor = vec4(vec3(g), c.a); +}