hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.09k stars 882 forks source link

Keyboard input does not work when mouse is unplugged #6931

Closed missonserch closed 3 months ago

missonserch commented 3 months ago

Regression?

No

System Info and Version

hyprland configuration folder hypr.tar.gz

$ hyprctl systeminfo -c ``` Hyprland, built from branch at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: Tue Jun 25 12:06:02 2024 Tag: v0.41.2, commits: 4886 flags: (if any) System Information: System name: Linux Node name: PC4KMK2 Release: 6.9.10-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Thu, 18 Jul 2024 18:06:13 +0000 GPU information: 0a:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX/7900M] [1002:744c] (rev c8) (prog-if 00 [VGA controller]) os-release: NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo plugins: ======Config-Start====== Config File: /home/missonserch/.config/hypr/hyprland.conf: Read Succeeded # ####################################################################################### # AUTOGENERATED HYPR CONFIG. # PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, # OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. # ####################################################################################### # # Please note not all available settings / options are set here. # For a full list, see the wiki # # autogenerated = 1 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ #monitor=,preferred,auto,auto monitor=DP-1,1920x1080@240,0x0,1,vrr,1 monitor=DP-2,1920x1080@60,-1080x-190,1,transform,1 # workspace = 9, monitor:DP-2 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch # exec-once = waybar & hyprpaper & firefox exec-once = /usr/lib/polkit-kde-authentication-agent-1 exec-once = hyprpaper & mako & hypridle & otd-daemon exec-once = waybar exec-once = nm-applet --indicator # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf source = ~/.config/hypr/keybinds.conf # Some default env vars. env = XCURSOR_THEME,Bibata-Modern-Classic env = XCURSOR_SIZE,24 #env = HYPRCURSOR_THEME,Bibata-Modern-Classic #env = HYPRCURSOR_SIZE,24 env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt6ct if you have that env = QT_QPA_PLATFORM,wayland env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 env = GDK_BACKEND,wayland env = XDG_MENU_PREFIX,arch- env = XDG_SESSION_TYPE,wayland env = XDG_CURRENT_DESKTOP,Hyprland # env = GTK_THEME,Nord # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us,ru kb_variant = ,mac kb_model = kb_options = grp:ctrl_space_toggle #kb_options = caps:swapescape kb_rules = follow_mouse = 0 float_switch_override_focus = 0 repeat_rate = 60 #accel_profile = flat touchpad { natural_scroll = no } sensitivity = -1.0 # -1.0 to 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 5 gaps_out = 5 border_size = 2 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959ff) layout = dwindle # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = false } cursor{ inactive_timeout = 5 } decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 # multisample_edges = true # active_opacity = 1.0 # inactive_opacity = 1.0 blur { enabled = false size = 4 passes = 1 new_optimizations = true xray = false #ignore_opacity = false popups = true } drop_shadow = true shadow_ignore_window = true shadow_range = 8 shadow_render_power = 4 col.shadow = rgba(1a1a1aee) # blurls = waybar # blurls = lockscreen blurls = dolphin } animations { enabled = yes # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more bezier = wind, 0.05, 0.9, 0.1, 1.0 bezier = winIn, 0.1, 1.1, 0.1, 1 bezier = winOut, 0.3, -0.3, 0, 1 bezier = liner, 1, 1, 1, 1 animation = windows, 1, 6, wind, slide animation = windowsIn, 1, 6, winIn, slide animation = windowsOut, 1, 5, winOut, slide animation = windowsMove, 1, 5, wind, slide animation = border, 1, 1, liner # animation = borderangle, 1, 30, liner, loop animation = workspaces, 1, 5, wind } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more no_gaps_when_only = false pseudotile = false preserve_split = yes # you probably want this } # Outdated setting, revise later #master { # # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more # new_is_master = true #} gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = on } misc { # See https://wiki.hyprland.org/Configuring/Variables/ for more force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers vfr = true vrr = 1 animate_manual_resizes = true # mouse_move_focuses_monitor = true disable_hyprland_logo = true disable_splash_rendering = true } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more #device { # name = epic-mouse-v1 # sensitivity = -0.5 #} # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. windowrulev2 = float, class:elisa windowrulev2 = minsize 610 460, class:elisa windowrulev2 = float, class:steam #windowrulev2 = minsize 1010 600, class:steam windowrulev2 = float, class:obs windowrulev2 = minsize 875 375, class:obs windowrulev2 = float, class:blueman-manager windowrulev2 = move onscreen 100% 0, class:blueman-manager windowrulev2 = float, class:kcalc windowrulev2 = size 480 430, class:kcalc #windowrulev2 = minsize 470 430, class:kcalc windowrulev2 = minsize 250 300, class:kcalc # Workspace rules: workspace = 1, monitor:DP-2 workspace = 2, monitor:DP-2 workspace = 3, monitor:DP-2 workspace = 4, monitor:DP-1 workspace = 5, monitor:DP-1 workspace = 6, monitor:DP-1 workspace = 7, monitor:DP-1 workspace = 8, monitor:DP-1 Config File: /home/missonserch/.config/hypr/keybinds.conf: Read Succeeded # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER Variables $terminal = alacritty -e tmux new-session -A $fileManager = dolphin $browser = firefox $menu = fuzzel --icon-theme=Papirus-Dark -b 212121ff -T true -B 2 -C 595959ff -s 595959ff -S FFFFFFff -t FFFFFFff # System navigaton # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod SHIFT CTRL, P, exec, wlogout bind = $mainMod CTRL, L, exec, hyprlock bindl = $mainMod CTRL, 0, exec, sleep 1 && hyprctl dispatch dpms off bindl = $mainMod CTRL, O, exec, sleep 1 && hyprctl dispatch dpms on bindl = $mainMod ALT, 0, exec, sleep 1 && hyprctl dispatch dpms off DP-2 bindl = $mainMod ALT, O, exec, sleep 1 && hyprctl dispatch dpms on DP-2 bind = $mainMod, T, exec, $terminal bind = $mainMod, C, killactive, bind = $mainMod, B, exec, $browser ##bind = $mainMod CTRL, P, exit bind = $mainMod, E, exec, $fileManager bind = $mainMod, F, fullscreen bind = $mainMod, V, togglefloating bind = $mainMod, SLASH, exec, $menu #bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, S, togglesplit, # dwindle # Screenshot binds MacOs style, but not exactly bind = ALT SHIFT, 3, exec, echo "0,0 1920x1080" | grim -g - bind = ALT SHIFT CTRL, 3, exec, echo "0,0 1920x1080" | grim -g - - | wl-copy bind = ALT SHIFT, 4, exec, slurp | grim -g - bind = ALT SHIFT CTRL, 4, exec, slurp | grim -g - - | wl-copy bind = ALT SHIFT, 5, exec, hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | grim -g - bind = ALT SHIFT CTRL, 5, exec, hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | grim -g - | wl-copy # Multimedia binds from wiki bindel=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bindel=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bindle=, XF86MonBrightnessUp, exec, ddcutil -d 2 setvcp 10 + 10 & ddcutil --noverify -d 1 setvcp 10 80 bindle=, XF86MonBrightnessDown, exec, ddcutil -d 2 setvcp 10 - 10 & ddcutil --noverify -d 1 setvcp 10 25 bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bindl=, XF86AudioPlay, exec, playerctl play-pause bindl=, XF86AudioNext, exec, playerctl next bindl=, XF86AudioPrev, exec, playerctl previous # Resize windows with mainMod + Alt + h,j,k,l bind = $mainMod ALT, h, resizeactive, -50 0 bind = $mainMod ALT, l, resizeactive, 50 0 bind = $mainMod ALT, k, resizeactive, 0 -50 bind = $mainMod ALT, j, resizeactive, 0 50 # Move windows with mainMod + Shift + h,j,k,l bind = $mainMod SHIFT, l, movewindow, r bind = $mainMod SHIFT, k, movewindow, u bind = $mainMod SHIFT, j, movewindow, d bind = $mainMod SHIFT, h, movewindow, l # Move focus with mainMod + h,j,k,l bind = $mainMod, h, movefocus, l bind = $mainMod, l, movefocus, r bind = $mainMod, k, movefocus, u bind = $mainMod, j, movefocus, d # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod CTRL, 1, focusworkspaceoncurrentmonitor, 1 bind = $mainMod CTRL, 2, focusworkspaceoncurrentmonitor, 2 bind = $mainMod CTRL, 3, focusworkspaceoncurrentmonitor, 3 bind = $mainMod CTRL, 4, focusworkspaceoncurrentmonitor, 4 bind = $mainMod CTRL, 5, focusworkspaceoncurrentmonitor, 5 bind = $mainMod CTRL, 6, focusworkspaceoncurrentmonitor, 6 bind = $mainMod CTRL, 7, focusworkspaceoncurrentmonitor, 7 bind = $mainMod CTRL, 8, focusworkspaceoncurrentmonitor, 8 bind = $mainMod CTRL, 9, focusworkspaceoncurrentmonitor, 9 # Example special workspace (scratchpad) #bind = $mainMod, S, togglespecialworkspace, magic #bind = $mainMod SHIFT, S, movetoworkspace, special:magic # Scroll through existing workspaces with mainMod + scroll bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 bind = $mainMod, N, workspace, +1 bind = $mainMod, P, workspace, -1 bind = $mainMod SHIFT, N, movetoworkspace, +1 bind = $mainMod SHIFT, P, movetoworkspace, -1 # C-Super to swith between workspaces #bind = $mainMod CTRL, L, workspace, +1 #bind = $mainMod CTRL, H, workspace, -1 # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow ======Config-End======== ```

Description

When I unplug the mouse (the only pointing device on the system) or boot the system without a mouse plugged in, all panes/windows ignore keyboard input. TTY input works, DE shortcuts do work, like focus switching with $mainmod + h,j,k,l, opening and closing panes work, but newly and already opened panes do not receive keyboard input. When I reconnect the mouse back everything resumes to work as expected. I have no idea what could be causing this, so I do not know what could be relevant to add here, you can always ask me for needed/helpful info.

How to reproduce

Prerequisites: only keyboard (and monitor(s)) are connected to the system.

1.Boot

  1. Log in
  2. Launch Hyprland

Or on already running system:

  1. Disconnect the mouse

Crash reports, logs, images, videos

No response

missonserch commented 3 months ago

The bug stopped reproducing🤔🤷‍♀️