From 3a5fd7b8c9b579fe09729d71ad2e76cf584efe49 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Wed, 10 Dec 2025 05:04:37 +0100 Subject: [PATCH] hypr: update keybinds and scripts --- dot-config/hypr/fragments/keybinds.conf | 2 +- dot-config/hypr/hyprland.conf | 16 +++++++--------- dot-config/hypr/scripts/accel.py | 4 ++-- dot-config/hypr/scripts/xdg-desktop-portal.sh | 19 ++++++++++--------- 4 files changed, 20 insertions(+), 21 deletions(-) diff --git a/dot-config/hypr/fragments/keybinds.conf b/dot-config/hypr/fragments/keybinds.conf index ce8ab46c..fb43633e 100644 --- a/dot-config/hypr/fragments/keybinds.conf +++ b/dot-config/hypr/fragments/keybinds.conf @@ -60,7 +60,7 @@ bind = CTRL ALT, K, togglespecialworkspace, keys # suremod keys (prevent fat-fingering 'em by accident) # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -bind = $suremod, E, exit, +bind = $suremod, M, exit, bind = $suremod, Return, exec, konsole # fallback terminal app bind = $suremod, G, exec, ~/.config/hypr/scripts/gamemode.sh bind = $suremod, L, exec, ~/.config/hypr/scripts/powermenu.sh diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index d4be34aa..44f1e3b1 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -32,7 +32,7 @@ exec-once = /usr/libexec/pam_kwallet_init exec-once = openrc --user hyprland # AFTER pam_kwallet_init!!! exec-once = hyprpm reload exec-once = env XDG_MENU_PREFIX=plasma- kbuildsycoca6 -exec-once = matugen -t neutral image /home/andy/Wallpapers/3440x1440-jffmy9eofxof1.jpg +exec-once = matugen -t scheme-neutral image /home/andy/Wallpapers/3440x1440-jffmy9eofxof1.jpg exec-once = openrgb -p default # Unset variables on exit @@ -136,14 +136,12 @@ input { device { name = razer-razer-basilisk-v3 sensitivity = 0 - # accel_profile = custom 0.3308622437 0.000 0.224 0.449 0.673 0.997 1.335 1.672 2.010 2.348 2.685 3.186 3.699 4.212 4.725 5.237 5.750 6.263 6.776 7.288 7.801 8.314 8.827 9.339 9.852 10.365 10.878 11.390 11.903 12.416 13.476 - accel_profile = custom 0.0965014878 0.000 0.099 0.198 0.297 0.396 0.495 0.627 0.776 0.925 1.074 1.223 1.372 1.521 1.670 1.819 1.969 2.153 2.379 2.606 2.832 3.058 3.285 3.511 3.738 3.964 4.190 4.417 4.643 4.870 5.096 5.322 5.549 5.775 6.002 6.228 6.454 6.681 6.907 7.133 7.360 7.586 7.813 8.039 8.265 8.492 8.718 8.945 9.171 9.397 9.865 - # accel_profile = flat + accel_profile = custom 0.0965014878 0.000 0.110 0.220 0.330 0.440 0.550 0.697 0.862 1.028 1.194 1.359 1.525 1.690 1.856 2.022 2.187 2.392 2.597 2.802 3.05 3.335 3.650 3.901 4.153 4.404 4.656 4.908 5.159 5.411 5.662 5.914 6.165 6.417 6.668 6.920 7.171 7.423 7.675 7.926 8.178 8.429 8.681 8.932 9.184 9.435 9.687 9.938 10.190 10.442 10.961 } device { name = zsa-technology-labs-moonlander-mark-i-1 - sensitivity = -0.1 + sensitivity = -0.2 accel_profile = flat } @@ -193,7 +191,7 @@ misc { key_press_enables_dpms = 1 vfr = 1 # set to 1 for battery savings vrr = 2 - render_unfocused_fps = 59 + render_unfocused_fps = 15 allow_session_lock_restore = 1 initial_workspace_tracking = 1 font_family = ZedMono NFP @@ -217,15 +215,15 @@ render { cm_fs_passthrough = 2 cm_enabled = 1 send_content_type = 1 - cm_auto_hdr = 2 - new_render_scheduling = 0 + cm_auto_hdr = 0 + new_render_scheduling = 1 } cursor { enable_hyprcursor = 1 no_warps = 0 no_hardware_cursors = 2 - no_break_fs_vrr = 2 + no_break_fs_vrr = 1 warp_on_change_workspace = 1 warp_on_toggle_special = 1 use_cpu_buffer = 2 # 2=nvidia-only diff --git a/dot-config/hypr/scripts/accel.py b/dot-config/hypr/scripts/accel.py index b438b4de..f8acd76a 100755 --- a/dot-config/hypr/scripts/accel.py +++ b/dot-config/hypr/scripts/accel.py @@ -15,11 +15,11 @@ import sys # ===== PARAMETERS ===== # set according to your device: -device_dpi = 1200 # mouse dpi +device_dpi = 1000 # mouse dpi screen_dpi = 110 screen_scaling_factor = 1 sample_point_count = 50 # should be enough but you can try to increase for accuracy of windows function -sensitivity_factor = 4.5 +sensitivity_factor = 5 # sensitivity factor translation table: (windows slider notches) # 1 = 0.1 # 2 = 0.2 diff --git a/dot-config/hypr/scripts/xdg-desktop-portal.sh b/dot-config/hypr/scripts/xdg-desktop-portal.sh index b2ab7ed0..74d34adb 100755 --- a/dot-config/hypr/scripts/xdg-desktop-portal.sh +++ b/dot-config/hypr/scripts/xdg-desktop-portal.sh @@ -1,15 +1,16 @@ #!/bin/bash -killall xdg-desktop-portal-hyprland -killall xdg-desktop-portal-gnome -killall xdg-desktop-portal-gnome -killall xdg-desktop-portal-kde -killall xdg-desktop-portal-wlr -killall xdg-desktop-portal +export XDG_CURRENT_DESKTOP=Hyprland +export XDG_SESSION_TYPE=wayland +export XDG_SESSION_DESKTOP=Hyprland + +pkill -f /usr/libexec/xdg-desktop-portal-hyprland +pkill -f /usr/libexec/xdg-desktop-portal-gnome +pkill -f /usr/libexec/xdg-desktop-portal-gnome +pkill -f /usr/libexec/xdg-desktop-portal-kde +pkill -f /usr/libexec/xdg-desktop-portal-wlr +pkill -f /usr/libexec/xdg-desktop-portal logger 'killed all xdg-desktop' sleep 1 -/usr/lib64/libexec/xdg-desktop-portal-kde & -logger 'xdg-desktop-portal-kde started' -sleep 1 /usr/libexec/xdg-desktop-portal-hyprland & logger 'xdg-desktop-portal-hyprland started' sleep 2 -- 2.51.2