]> Freerunner's - dotfiles.git/commitdiff
hypr: update config
authorAndre Ramnitz <tux.rising@gmail.com>
Thu, 26 Feb 2026 06:43:27 +0000 (07:43 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Thu, 26 Feb 2026 06:43:27 +0000 (07:43 +0100)
dot-config/hypr/fragments/env.conf
dot-config/hypr/fragments/keybinds.conf
dot-config/hypr/fragments/windowrules.conf
dot-config/hypr/hypridle.conf
dot-config/hypr/hyprland.conf
dot-config/hypr/hyprqt6engine.conf
dot-config/hypr/hyprtoolkit.conf [new file with mode: 0644]
dot-config/hypr/scripts/gamemode.sh
dot-config/hypr/shaders/web1.frag [new file with mode: 0644]
dot-config/hypr/shaders/web2.frag [new file with mode: 0644]

index 0124b4629676aa4eae115cbc470cfd3a8414dc83..3772baac16921ad4f5a40df1ce4b527102829809 100644 (file)
@@ -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
index 64c8914586fbd4a65b2f467451b70b72ad9a24db..38cc92dedd0bfdf6bdb4c88da4d5d992ecb92283 100644 (file)
@@ -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
index b58d790974072e591f33ec8c8dab61a15890d4cb..b0f63dda2c6aca43a4159ec1e952e35a54fef128 100644 (file)
@@ -153,6 +153,7 @@ windowrule {
 windowrule {
   name = popup_class
   float = on
+  size = 1280 800
   match:class = ^(popup)$
 }
 
index 22f2f84bd58f592fd5b0f21925b478c994d5203f..03a27467ed7ac29f826379b79efd26221b5b6f9e 100644 (file)
@@ -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
 }
index 9cc5a824bab0db328471c29f0f0d973212753f05..db24dd3ca6cdd762df7ac67c8cfbd0120b4d586f 100644 (file)
@@ -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
+
index 6ab5b8af62b9937caba03d15eb0481fd52294927..269cd71371360617d03edf768044ee4b7ce8d67c 100644 (file)
@@ -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 (file)
index 0000000..33650f0
--- /dev/null
@@ -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
index b5b7b9405f56c06499576a93b6e27c91377cb275..cbb1a0f3194c1a039f4d163ce2b4650b0b580318 100755 (executable)
@@ -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 (file)
index 0000000..1150358
--- /dev/null
@@ -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 (file)
index 0000000..afa1c9d
--- /dev/null
@@ -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);
+}