From 03e8aa1343a693d1ccb314c384000369bbdfdf09 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 2 Dec 2025 21:12:25 +0100 Subject: [PATCH] fixes multi-monitor setup fullscreen switching on the first monitor --- .config/hypr/config/autostart.conf | 3 ++ .config/hypr/config/colors.conf | 38 +++++++++++++------------- .config/hypr/config/decorations.conf | 6 ++-- .config/hypr/config/defaults.conf | 2 +- .config/hypr/config/environment.conf | 14 +++++----- .config/hypr/config/monitor.conf | 11 ++++++-- .config/hypr/config/variables.conf | 14 ++++------ .config/hypr/config/workspaces.conf | 8 ++---- .config/hypr/hypridle.conf | 10 +++---- .config/hypr/pyprland.toml | 4 +++ .config/hypr/scripts/monitor-toggle.sh | 2 +- .config/hypr/workspaces.conf | 0 12 files changed, 58 insertions(+), 54 deletions(-) create mode 100644 .config/hypr/pyprland.toml create mode 100644 .config/hypr/workspaces.conf diff --git a/.config/hypr/config/autostart.conf b/.config/hypr/config/autostart.conf index 9224895..8716775 100644 --- a/.config/hypr/config/autostart.conf +++ b/.config/hypr/config/autostart.conf @@ -28,3 +28,6 @@ exec-once = $idlehandler # https://github.com/hyprwm/Hyprland/issues/2319#issuecomment-2409983376 exec-once = wl-paste -t text -w xclip -selection clipboard & exec-once = wl-paste --watch cliphist store & + +# pyprland +exec-once = /usr/bin/pypr --debug /tmp/pypr.log diff --git a/.config/hypr/config/colors.conf b/.config/hypr/config/colors.conf index cd05c0a..9c0b5cf 100644 --- a/.config/hypr/config/colors.conf +++ b/.config/hypr/config/colors.conf @@ -1,19 +1,19 @@ -$wallpaper = /usr/share/wallpapers/downloaded/pexels-zetong-li-880728-18780512.jpg -$background = rgb(0D0F10) -$foreground = rgb(FCF1D3) -$color0 = rgb(38393A) -$color1 = rgb(7F4E47) -$color2 = rgb(7D7F54) -$color3 = rgb(8B7C7D) -$color4 = rgb(61868C) -$color5 = rgb(D2D1E6) -$color6 = rgb(F5D782) -$color7 = rgb(F2E3B8) -$color8 = rgb(A99F81) -$color9 = rgb(7F4E47) -$color10 = rgb(7D7F54) -$color11 = rgb(8B7C7D) -$color12 = rgb(61868C) -$color13 = rgb(D2D1E6) -$color14 = rgb(F5D782) -$color15 = rgb(F2E3B8) \ No newline at end of file +$wallpaper = /usr/share/wallpapers/downloaded/pexels-eberhardgross-1421903.jpg +$background = rgb(0D0E0E) +$foreground = rgb(E9FDFF) +$color0 = rgb(383939) +$color1 = rgb(6E544A) +$color2 = rgb(727F7E) +$color3 = rgb(93796E) +$color4 = rgb(839CA5) +$color5 = rgb(BCA592) +$color6 = rgb(C0FAFF) +$color7 = rgb(D7F4F7) +$color8 = rgb(97ABAD) +$color9 = rgb(6E544A) +$color10 = rgb(727F7E) +$color11 = rgb(93796E) +$color12 = rgb(839CA5) +$color13 = rgb(BCA592) +$color14 = rgb(C0FAFF) +$color15 = rgb(D7F4F7) \ No newline at end of file diff --git a/.config/hypr/config/decorations.conf b/.config/hypr/config/decorations.conf index b42b632..af37b8a 100644 --- a/.config/hypr/config/decorations.conf +++ b/.config/hypr/config/decorations.conf @@ -9,16 +9,16 @@ source = ~/.config/hypr/config/colors.conf decoration { active_opacity = 1 inactive_opacity = 0.7 - rounding = 10 + rounding = 3 dim_inactive = true dim_strength = 0.1 # https://wiki.hyprland.org/0.45.0/Configuring/Variables/#blur blur { - size = 15 + size = 30 passes = 2 # more passes = more resource intensive. xray = true - noise = 0.03 + noise = 0.01 } # https://wiki.hyprland.org/0.45.0/Configuring/Variables/#shadow diff --git a/.config/hypr/config/defaults.conf b/.config/hypr/config/defaults.conf index c42e52d..2d31d87 100644 --- a/.config/hypr/config/defaults.conf +++ b/.config/hypr/config/defaults.conf @@ -2,7 +2,7 @@ # ┃ Defaults Configuration ┃ # ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ -$filemanager = dolphin +$filemanager = nemo $applauncher = tofi-drun --drun-launch=true #$applauncher = rofi -show combi -modi window,run,combi -combi-modi window,run $terminal = kitty diff --git a/.config/hypr/config/environment.conf b/.config/hypr/config/environment.conf index 0e865e4..fe69ff5 100644 --- a/.config/hypr/config/environment.conf +++ b/.config/hypr/config/environment.conf @@ -7,13 +7,13 @@ envd = XCURSOR_SIZE,24 envd = QT_CURSOR_SIZE,24 # Force electron apps to use wayland -# env = ELECTRON_OZONE_PLATFORM_HINT, auto -# env = QT_QPA_PLATFORM, wayland -# env = SDL_VIDEODRIVER, wayland -# env = CLUTTER_BACKEND, wayland -# env = XDG_SESSION_TYPE, wayland -# env = MOZ_ENABLE_WAYLAND, 1 -# env = NIXOS_OZONE_WL, 1 +env = ELECTRON_OZONE_PLATFORM_HINT,wayland +env = QT_QPA_PLATFORM, wayland +env = SDL_VIDEODRIVER, wayland +env = CLUTTER_BACKEND, wayland +env = XDG_SESSION_TYPE, wayland +env = MOZ_ENABLE_WAYLAND, 1 +env = NIXOS_OZONE_WL, 1 # fixes full screen flickering env = WLR_DRM_NO_DIRECT_SCANOUT,1 diff --git a/.config/hypr/config/monitor.conf b/.config/hypr/config/monitor.conf index d8a1ee0..a2d284a 100644 --- a/.config/hypr/config/monitor.conf +++ b/.config/hypr/config/monitor.conf @@ -4,10 +4,15 @@ # Monitor wiki https://wiki.hyprland.org/0.45.0/Configuring/Monitors/ -monitor = eDP-2, highres@highrr, 0x0, 1, vrr, 0 -monitor = DP-2, highres@highrr, auto-left, 1, vrr, 0 +monitor = desc:BOE NE156FHM-NX6, highres@highrr, 0x0, 1, vrr, 1 +# monitor = DP-2, highres@highrr, auto-left, 1, vrr, 0 -monitor = HDMI-A-1, highres@highrr, auto-left, 1, transform, 1 +monitor = HDMI-A-1, highres@highrr, auto-right, 1, transform, 1 +monitor = desc:Samsung Electric Company S24F350 H4ZK111233, highres@highrr, auto-right, 1, transform, 1 +monitor = desc:Samsung Electric Company S24F350 H4ZR302705, highres@highrr, auto-right, 1 +#monitor = desc:Samsung Electric Company S24F350 H4ZR302705, highres@highrr, auto-right, 1 + +# monitor = HDMI-A-1, highres@highrr, auto-right, 1, vrr, 0 # If you need to scale things like steam etc, please uncomment these lines. # Adjust GDK_SCALE accordingly to your liking. diff --git a/.config/hypr/config/variables.conf b/.config/hypr/config/variables.conf index 06af48f..0d86cdb 100644 --- a/.config/hypr/config/variables.conf +++ b/.config/hypr/config/variables.conf @@ -20,15 +20,6 @@ general { } } -# https://wiki.hyprland.org/0.45.0/Configuring/Variables/#gestures -gestures { - workspace_swipe = true - workspace_swipe_fingers = 4 - workspace_swipe_distance = 250 - workspace_swipe_min_speed_to_force = 15 - workspace_swipe_create_new = false -} - # https://wiki.hyprland.org/0.45.0/Configuring/Variables/#group group { col.border_active = $color6 @@ -90,3 +81,8 @@ master { cursor { no_hardware_cursors = true } + +device { + name = logitech-gaming-mouse-g502 + sensitivity=0.9 + } diff --git a/.config/hypr/config/workspaces.conf b/.config/hypr/config/workspaces.conf index 6d7456b..3f071a3 100644 --- a/.config/hypr/config/workspaces.conf +++ b/.config/hypr/config/workspaces.conf @@ -7,10 +7,6 @@ workspace = 2, monitor:eDP-2 workspace = 3, monitor:eDP-2 workspace = 4, monitor:eDP-2 -workspace = 5, monitor:DP-2 -workspace = 6, monitor:DP-2 -workspace = 7, monitor:DP-2 +workspace = 7, monitor:desc:Samsung Electric Company S24F350 H4ZR302705 workspace = 8, monitor:DP-2 - -workspace = 7, monitor:HDMI-A-1 -workspace = 8, monitor:HDMI-A-1 +workspace = 9, monitor:HDMI-A-1 diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf index 57e522e..b522f60 100644 --- a/.config/hypr/hypridle.conf +++ b/.config/hypr/hypridle.conf @@ -22,8 +22,8 @@ listener { on-timeout = ~/.config/swaylock/lockscript.sh # lock screen when timeout has passed } -listener { - timeout = 900 # 15min - on-timeout = hyprctl dispatch dpms off 5.5 # screen off when timeout has passed - on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired. -} +# listener { +# timeout = 900 # 15min +# on-timeout = hyprctl dispatch dpms off 5.5 # screen off when timeout has passed +# on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired. +# } diff --git a/.config/hypr/pyprland.toml b/.config/hypr/pyprland.toml new file mode 100644 index 0000000..3d94636 --- /dev/null +++ b/.config/hypr/pyprland.toml @@ -0,0 +1,4 @@ +[pyprland] +plugins = [ + "shift_monitors", +] diff --git a/.config/hypr/scripts/monitor-toggle.sh b/.config/hypr/scripts/monitor-toggle.sh index c3ca5dc..a59d72a 100755 --- a/.config/hypr/scripts/monitor-toggle.sh +++ b/.config/hypr/scripts/monitor-toggle.sh @@ -79,8 +79,8 @@ profile_dual() { profile_triple() { # Ensure both externals are on (and only those two) disable_all_externals + enable_line "$EXT2" # ext2 first so it appears in the middle enable_line "$EXT1" - enable_line "$EXT2" # You can drop EXT_FALLBACK if you don't actually need it: # enable_line "$EXT_FALLBACK" notify "Profile: Triple" "Enabled both externals" diff --git a/.config/hypr/workspaces.conf b/.config/hypr/workspaces.conf new file mode 100644 index 0000000..e69de29