You are not logged in.

#1 2025-05-12 09:56:55

swimming03
Member
Registered: 2021-10-01
Posts: 2

Why in the second window of hyprland my mainMod case is pressed?

First My env:

OS: Arch Linux x86_64 
Host: SER Version 1.0 
Kernel: Linux 6.14.6-arch1-1 
Packages: 2356 (pacman), 23 (flatpak) 
Shell: /usr/bin/zsh 5.9 
Resolution: 2560x1440 
DE: Hyprland 
Theme: Adwaita-dark [GTK2/3] 
Icons: Reversal [GTK2/3] 
Terminal: kitty 
CPU: Ryzen 7 7735HS with Radeon Graphics (8) @ 4.8GHz [47.0°C] 
GPU: AMD ATI Radeon 680M 
Memory:  7.83GiB / 31.05GiB 
CPU Usage: [____________] 3% 
Disk (/): [*********___] 359G / 434G (83%) 
Font: FantasqueSansM Nerd Font Mono, 12 [GTK2/3] 

Second, my hyprland conf:

monitor=,preferred,auto,auto
$terminal = kitty
$fileManager = dolphin
$menu = wofi --show drun
$wg = rofi -modi WireGuard:~/.config/waybar/wireguard-rofi-waybar/wireguard-rofi.sh -show WireGuard
$nutstore = /usr/bin/python3 /home/meet/.nutstore/dist/bin/nutstore-pydaemon.py
$brower = firefox

exec-once = /usr/lib/xdg-desktop-portal-hyprland 
exec-once = waybar & hyprpaper & swaync & swayidle & fcitx5 -d
exec-once = nm-applet & mako & udiskie
exec-once = /home/meet/.config/hypr/wallpaper.sh &
exec-once = hyprctl setcursor catppuccin-mocha-dark-cursors 28
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = /usr/lib/hyprpolkitagent
exec-once = $nutstore &  remmina -i
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24

general {
    gaps_in = 3
    gaps_out = 7
    border_size = 2
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)
    resize_on_border = false
    allow_tearing = false
    layout = dwindle
}

decoration {
    rounding = 10
    active_opacity = 1.0
    inactive_opacity = 1.0
t
    blur {
        enabled = true
        size = 3
        passes = 1
        vibrancy = 0.1696
    }
}

animations {
    enabled = yes
    bezier = easeOutQuint,0.23,1,0.32,1
    bezier = easeInOutCubic,0.65,0.05,0.36,1
    bezier = linear,0,0,1,1
    bezier = almostLinear,0.5,0.5,0.75,1.0
    bezier = quick,0.15,0,0.1,1
    animation = global, 1, 10, default
    animation = border, 1, 5.39, easeOutQuint
    animation = windows, 1, 4.79, easeOutQuint
    animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
    animation = windowsOut, 1, 1.49, linear, popin 87%
    animation = fadeIn, 1, 1.73, almostLinear
    animation = fadeOut, 1, 1.46, almostLinear
    animation = fade, 1, 3.03, quick
    animation = layers, 1, 3.81, easeOutQuint
    animation = layersIn, 1, 4, easeOutQuint, fade
    animation = layersOut, 1, 1.5, linear, fade
    animation = fadeLayersIn, 1, 1.79, almostLinear
    animation = fadeLayersOut, 1, 1.39, almostLinear
    animation = workspaces, 1, 1.94, almostLinear, fade
    #animation = workspacesIn, 1, 1.21, almostLinear, fade
    #animation = workspacesOut, 1, 1.94, almostLinear, fade
}

dwindle {
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = true # You probably want this
}

misc {
    force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
    disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
}

input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =
    follow_mouse = 1
    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
    touchpad {
        natural_scroll = false
    }
}

gestures {
    workspace_swipe = false
}

device {
    name = epic-mouse-v1
    sensitivity = -0.5
}

$mainMod = Mod4

bind = $mainMod, T, exec, $terminal
bind = $mainMod, D, exec, $menu
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, F, togglefloating,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, L, exec, hyprlock
bind = $mainMod, B, exec, $brower
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod SHIFT, W, exec, $wg

bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

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
bind = $mainMod, 0, workspace, 10

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 SHIFT, 0, movetoworkspace, 10

bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic

bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-

bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous

windowrule = suppressevent maximize, class:.*
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0

The problem now is that I have been fine in the first window, but after switching to the second window, then switching to other windows, switching back to the second window, the problem of mainMod being pressed will appear. I have restored the configuration file countless times, and I have also used other people's configuration files, and this problem will occur. As long as this problem occurs, I open the terminal once and close it again, and it will be fixed. Other programs do not work.

my xmodmap:

xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Alt_L (0xcc),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3        ISO_Level5_Shift (0xcb),  Hyper_L (0xcf)
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce)
mod5        ISO_Level3_Shift (0x5c)

Last edited by swimming03 (2025-05-13 00:47:38)

Offline

#2 2025-05-12 14:03:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: Why in the second window of hyprland my mainMod case is pressed?

Please use [code][/code] tags. Edit your post in this regard.
xmodmap on wayland is largely irrelevant (save maybe xwayland clients - are such involved here?)

Afaiu you're using Mod4+up/down/left/right to cycle the focus and then Mod4 gets logically stuck, ie. hyprland misses that you released it?
Like https://www.reddit.com/r/archlinux/comm … _hyprland/ or https://github.com/hyprwm/Hyprland/issues/4378 or https://github.com/hyprwm/Hyprland/issues/4673 or, very specifically, https://github.com/hyprwm/Hyprland/discussions/10360

Offline

#3 2025-05-13 00:52:04

swimming03
Member
Registered: 2021-10-01
Posts: 2

Re: Why in the second window of hyprland my mainMod case is pressed?

seth wrote:

Please use [code][/code] tags. Edit your post in this regard.
xmodmap on wayland is largely irrelevant (save maybe xwayland clients - are such involved here?)

Afaiu you're using Mod4+up/down/left/right to cycle the focus and then Mod4 gets logically stuck, ie. hyprland misses that you released it?
Like https://www.reddit.com/r/archlinux/comm … _hyprland/ or https://github.com/hyprwm/Hyprland/issues/4378 or https://github.com/hyprwm/Hyprland/issues/4673 or, very specifically, https://github.com/hyprwm/Hyprland/discussions/10360



Thank you so much.I’ll give it a try.But this morning,after I commented out fcitx5,I found that it actually worked fine.?

I have fixed it and need to remove support for v2 from fcitx5. Please refer to the article address: https://github.com/fcitx/fcitx5/issues/1260

Last edited by swimming03 (2025-05-13 02:13:08)

Offline

#4 2025-05-13 05:56:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,287

Re: Why in the second window of hyprland my mainMod case is pressed?

I have fixed it and need to remove support for v2 from fcitx5. Please refer to the article address: https://github.com/fcitx/fcitx5/issues/1260

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB