mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
994 stars 80 forks source link

[BUG] Copying certain texts and pictures changes keyboard layout #389

Open cap0bvious opened 6 days ago

cap0bvious commented 6 days ago

Describe the bug I have two keyboard layouts: us and ru. When ru layout is active, copying a URL or some pictures that are probably stored as a URL causes keyboard to start typing in us layout until I press a key that isn't a letter or a number. Indicator on Waybar still shows ru, and changing layout with a shortcut results in us layout, forcing to change the layout back again. Described behaviour can be useful in some rare occurances, but mostly it's annoying

To Reproduce Steps to reproduce the behavior:

  1. Change layout to ru
  2. Copy any URL adress
  3. Layout is broken temporarily

Expected behavior Expected behaviour is layout staying the same until I explicitely change it

Distribution (please complete the following information):

Additional context I tried googling the issue for several weeks, but couldn't find what can be causing described behaviour. It never happened in my DEs that I have used before. When it happened first in Manjaro, dotfiles were installed on top of KDE which is not ideal I guess, but even a proper installation of Arch still has this issue. I don't know if it's a bug or a weird feature, but I'd like to fix it

mylinuxforwork commented 6 days ago

Difficult to test exactly your scenario. Can you share your keyboard.conf?

cap0bvious commented 6 days ago

It's mostly default, I just added second layout and a toggle between both

# ----------------------------------------------------- 
# Keyboard Layout
# https://wiki.hyprland.org/Configuring/Variables/#input
# -----------------------------------------------------
input {
    kb_layout = us, ru
    kb_variant = 
    kb_model =
    kb_options = grp:win_space_toggle
    numlock_by_default = true
    mouse_refocus = false

    # For United States
    # kb_layout = us
    # kb_variant = intl
    # kb_model = pc105
    # kb_options =

    follow_mouse = 1
    touchpad {
        # for desktop
        natural_scroll = false

        # for laptop
        # natural_scroll = yes
        # middle_button_emulation = true
        # clickfinger_behavior = false     
        scroll_factor = 1.0  # Touchpad scroll factor
    }
    sensitivity = 0 # Pointer speed: -1.0 - 1.0, 0 means no modification.
}

gestures {
    workspace_swipe = true
}