Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

floating_modifier resize does not work with emulated right click from trackpad #8533

Open
cccslater opened this issue Jan 14, 2025 · 0 comments
Labels
bug Not working as intended

Comments

@cccslater
Copy link

  • Swayfx Version:

    • swayfx version 0.4 (based on sway 1.9.0)
  • Config file:

    • Nix-generated

    • config
      bindsym --no-repeat --release Super_L exec pkill $launcher || $launcher
      font pango:Inter Bold 11.000000
      floating_modifier Mod4
      default_border normal 2
      default_floating_border normal 2
      hide_edge_borders none
      focus_wrapping no
      focus_follows_mouse always
      focus_on_window_activation smart
      mouse_warping output
      workspace_layout default
      workspace_auto_back_and_forth no
      client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
      client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
      client.unfocused #333333 #222222 #888888 #292d2e #222222
      client.urgent #2f343a #900000 #ffffff #900000 #900000
      client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
      client.background #ffffff
      
      bindsym Mod4+0 workspace number 10
      bindsym Mod4+1 workspace number 1
      bindsym Mod4+2 workspace number 2
      bindsym Mod4+3 workspace number 3
      bindsym Mod4+4 workspace number 4
      bindsym Mod4+5 workspace number 5
      bindsym Mod4+6 workspace number 6
      bindsym Mod4+7 workspace number 7
      bindsym Mod4+8 workspace number 8
      bindsym Mod4+9 workspace number 9
      bindsym Mod4+Down focus down
      bindsym Mod4+Left focus left
      bindsym Mod4+Return exec /nix/store/gwz492jsai01m1729b899cn9x9n1k02r-foot-1.20.1/bin/foot
      bindsym Mod4+Right focus right
      bindsym Mod4+Shift+0 move container to workspace number 10
      bindsym Mod4+Shift+1 move container to workspace number 1
      bindsym Mod4+Shift+2 move container to workspace number 2
      bindsym Mod4+Shift+3 move container to workspace number 3
      bindsym Mod4+Shift+4 move container to workspace number 4
      bindsym Mod4+Shift+5 move container to workspace number 5
      bindsym Mod4+Shift+6 move container to workspace number 6
      bindsym Mod4+Shift+7 move container to workspace number 7
      bindsym Mod4+Shift+8 move container to workspace number 8
      bindsym Mod4+Shift+9 move container to workspace number 9
      bindsym Mod4+Shift+Down move down
      bindsym Mod4+Shift+Left move left
      bindsym Mod4+Shift+Right move right
      bindsym Mod4+Shift+Up move up
      bindsym Mod4+Shift+c reload
      bindsym Mod4+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
      bindsym Mod4+Shift+h move left
      bindsym Mod4+Shift+j move down
      bindsym Mod4+Shift+k move up
      bindsym Mod4+Shift+l move right
      bindsym Mod4+Shift+minus move scratchpad
      bindsym Mod4+Shift+q kill
      bindsym Mod4+Shift+space floating toggle
      bindsym Mod4+Up focus up
      bindsym Mod4+a focus parent
      bindsym Mod4+b splith
      bindsym Mod4+d exec /nix/store/35xpy91irwgcyjvrpnhks4v6rks8mc3r-dmenu-5.3/bin/dmenu_path | /nix/store/35xpy91irwgcyjvrpnhks4v6rks8mc3r-dmenu-5.3/bin/dmenu | /nix/store/jqrz1vq5nz4lnv9pqzydj0ir58wbjfy1-findutils-4.10.0/bin/xargs swaymsg exec --
      bindsym Mod4+e layout toggle split
      bindsym Mod4+f fullscreen toggle
      bindsym Mod4+h focus left
      bindsym Mod4+j focus down
      bindsym Mod4+k focus up
      bindsym Mod4+l focus right
      bindsym Mod4+minus scratchpad show
      bindsym Mod4+r mode resize
      bindsym Mod4+s layout stacking
      bindsym Mod4+space focus mode_toggle
      bindsym Mod4+v splitv
      bindsym Mod4+w layout tabbed
      
      input "*" {
        map_to_output eDP-1
      }
      
      input "type:keyboard" {
        xkb_layout gb
      }
      
      input "type:touchpad" {
        accel_profile adaptive
        dwt disabled
        natural_scroll enabled
        pointer_accel 0.5
        tap enabled
      }
      
      output "eDP-1" {
        bg ~/Pictures/Wallpapers/SAM_2929.JPG fill
        mode 1920x1080@60.020Hz
      }
      
      mode "resize" {
        bindsym Down resize grow height 10 px
        bindsym Escape mode default
        bindsym Left resize shrink width 10 px
        bindsym Return mode default
        bindsym Right resize grow width 10 px
        bindsym Up resize shrink height 10 px
        bindsym h resize shrink width 10 px
        bindsym j resize grow height 10 px
        bindsym k resize shrink height 10 px
        bindsym l resize grow width 10 px
      }
      
      bar {
        font pango:monospace 8.000000
        position top
        swaybar_command /nix/store/zlk7fsgbqxaadldzk5ic4b73vy3dgwmi-waybar-0.11.0/bin/waybar
      }
      
      gaps inner 6
      exec "/nix/store/fizhmjga78lvd077wrf6zpi3jn36ml9v-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE; systemctl --user reset-failed && systemctl --user start sway-session.target && swaymsg -mt subscribe '[]' || true && systemctl --user stop sway-session.target"
      corner_radius 10
      blur enable
      blur_brightness 1
      blur_passes 3
      blur_radius 9
      blur_noise 0.025
      shadows enable
      shadows_on_csd enable
      shadow_blur_radius 6
      shadow_color #00000060
      seat * xcursor_theme WhiteSur-cursors 30
      layer_effects "waybar" blur enable; shadows enable
      for_window [floating] shadows enable
      
  • Description:

    • using swayfx on NixOS
    • holding floating_modifier and dragging with 2 fingers on trackpad should resize window
    • instead, nothing happens
    • if you hold floating_modifier and tap with 2 fingers, the resize cursor appears briefly, but there is no way to turn this into a drag

Still broken on on plain sway 1.10, I checked.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

1 participant