From 6828cd8090342fb40a45594c0b65bd92e3444895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20B=C3=BCchler?= Date: Fri, 8 Aug 2025 11:19:12 +0200 Subject: [PATCH] feat: integrate local Hyprland config into repo - Add host-aware autostart for udiskie and steam (zsh, existence check) - Remove redundant appearance env vars from env.conf - Merge maximize suppression, XWayland drag fix, Steam/Lutris float rules into window rules - Add NVIDIA env vars to desktop monitor config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with opencode Co-Authored-By: opencode --- .config/hypr/includes/autostart.conf | 2 ++ .config/hypr/includes/env.conf | 2 -- .config/hypr/includes/monitors-lousy-arch.conf | 16 ++++++++++++++++ .config/hypr/includes/programs.conf | 4 ++++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .config/hypr/includes/monitors-lousy-arch.conf diff --git a/.config/hypr/includes/autostart.conf b/.config/hypr/includes/autostart.conf index a5364d3..bfa79e0 100644 --- a/.config/hypr/includes/autostart.conf +++ b/.config/hypr/includes/autostart.conf @@ -10,3 +10,5 @@ exec-once = hypridle & # Start Brave browser on Hyprland startup exec-once = brave & +exec-once = zsh -c 'command -v udiskie && udiskie -t' +exec-once = zsh -c 'command -v steam && steam -silent' diff --git a/.config/hypr/includes/env.conf b/.config/hypr/includes/env.conf index e6308b8..1ed0fb1 100644 --- a/.config/hypr/includes/env.conf +++ b/.config/hypr/includes/env.conf @@ -1,3 +1 @@ # Environment variables -env = XCURSOR_SIZE,24 -env = QT_QPA_PLATFORM,wayland diff --git a/.config/hypr/includes/monitors-lousy-arch.conf b/.config/hypr/includes/monitors-lousy-arch.conf new file mode 100644 index 0000000..fcb8e9b --- /dev/null +++ b/.config/hypr/includes/monitors-lousy-arch.conf @@ -0,0 +1,16 @@ +env = LIBVA_DRIVER_NAME,nvidia +env = __GLX_VENDOR_LIBRARY_NAME,nvidia + +monitor=DP-2,preferred, 0x0, 1 +monitor=DP-3,preferred, -1920x1060, 1 + +workspace=1,monitor:DP-2 +workspace=2,monitor:DP-2 +workspace=3,monitor:DP-2 +workspace=4,monitor:DP-2 +workspace=5,monitor:DP-2 +workspace=6,monitor:DP-2 +workspace=7,monitor:DP-2 +workspace=8,monitor:DP-2 +workspace=9,monitor:DP-2 +workspace=10,monitor:DP-3 diff --git a/.config/hypr/includes/programs.conf b/.config/hypr/includes/programs.conf index a98853f..b7e9927 100644 --- a/.config/hypr/includes/programs.conf +++ b/.config/hypr/includes/programs.conf @@ -5,3 +5,7 @@ $menu = rofi -show combi # Always move Brave browser to workspace 10 windowrulev2 = workspace 10, class:^(Brave-browser)$ +windowrulev2 = suppressevent maximize, class:.* +windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 +windowrulev2 = float,class: ^(steam)$ +windowrulev2 = float,class: ^(net.lutris.Lutris)$