Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Sometimes Chinese input method can not input Chinese normally in where need input Chinese

Open PILIHU2022 opened this issue 1 year ago • 19 comments

Regression?

No

System Info and Version

System/Version info
Hyprland, built from branch main at commit 0e86808e5912823f1c6bea1b6d5fcae297fc9f57 dirty (cursor: Better xcursor implementation (7178)).
Date: Tue Aug 6 01:58:21 2024
Tag: v0.41.2-166-g0e86808e, commits: 5052

flags: (if any)


System Information:
System name: Linux
Node name: Arch
Release: 6.10.3-zen1-1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Sun, 04 Aug 2024 05:11:13 +0000


GPU information: 
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] [1002:743f] (rev c1) (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

Description

Hi! I'm using fctix5-rime to input Chinese, but nowadays, it have a problem. Like this picture following. I have asked some people, they also have this problem. If the picture can't give enough information for developer. You can reply this issue, and I will try to give you some information what useful

The package I installed to input Chinese:

fcitx5
fcitx5-chinese-addons
fcitx5-rime

And the other packages maybe cause this issue:

fcitx5-configtool
fcitx5-gtk
fcitx5-material-color
fcitx5-nord
fcitx5-pinyin-chinese-idiom
fcitx5-pinyin-zhwiki
fcitx5-qt

How to reproduce

Sometimes will have this problem. The people who I have asked all can't reproduce this issue

Crash reports, logs, images, videos

355291263-bd3f5244-5887-4e34-b1cc-ebf4488e3662

PILIHU2022 avatar Aug 06 '24 03:08 PILIHU2022

Someone has recorded this video Link

He wants to input here image

PILIHU2022 avatar Aug 06 '24 03:08 PILIHU2022

Someone has recorded this video Link

Are u sure this is a issue with hyprland but not the input method itself, I'm using fcitx5-pinyin and fcitx5-wubi just fine on chromium.. swappy-20240806-120546

He says that he has changed the desktop environment but he doesn't have the problem. Me,too

PILIHU2022 avatar Aug 06 '24 04:08 PILIHU2022

Do you have the

XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus

environment variables?

Also keep in mind that certain old versions of Minecraft use LWJGL2, which does not support input methods on Linux.

ErrorNoInternet avatar Aug 06 '24 07:08 ErrorNoInternet

Do you have the

XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus

environment variables?

Also keep in mind that certain old versions of Minecraft use LWJGL2, which does not support input methods on Linux.

Minecraft has not problem before. Just a example. I am sorry that I am far away from my computer so I will check the environment vaiables tomorrow

PILIHU2022 avatar Aug 06 '24 10:08 PILIHU2022

Do you have the

XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
GLFW_IM_MODULE=ibus

environment variables?

Also keep in mind that certain old versions of Minecraft use LWJGL2, which does not support input methods on Linux.

Oh. I remember that I have added that in my /etc/environmentfile.

PILIHU2022 avatar Aug 06 '24 10:08 PILIHU2022

When I and my friends use 0.39.9, the input method works very well(will not have this problem). But when the hyprland version is higer then 0.39.9, it will have this problem.

PILIHU2022 avatar Aug 06 '24 10:08 PILIHU2022

But we changed the desktop, such as KDE, the input method can work very well, too

PILIHU2022 avatar Aug 06 '24 10:08 PILIHU2022

But if we delete the environment, it also have this problem

PILIHU2022 avatar Aug 06 '24 10:08 PILIHU2022

Can you try the latest git?

sungyoonc avatar Sep 02 '24 10:09 sungyoonc

Can you try the latest git?

I updated it. But I don't know how to regression. If it still like this issue, I will continue to report this

PILIHU2022 avatar Sep 07 '24 01:09 PILIHU2022

Still have this issue:(

PILIHU2022 avatar Sep 07 '24 03:09 PILIHU2022

Maybe just in electron apps.

PILIHU2022 avatar Sep 07 '24 03:09 PILIHU2022

Maybe just in electron apps.

Is the app you are having a problem running in xwayland?

sungyoonc avatar Sep 07 '24 03:09 sungyoonc

Maybe just in electron apps.

Is the app you are having a problem running in xwayland?

Yes. QQ for example:

Window 5d5f26c51e60 -> QQ:
	mapped: 1
	hidden: 0
	at: 22,571
	size: 931,487
	workspace: 1 (1)
	floating: 0
	pseudo: 0
	monitor: 0
	class: QQ
	title: QQ
	initialClass: QQ
	initialTitle: QQ
	pid: 1750
	xwayland: 1
	pinned: 0
	fullscreen: 0
	fullscreenClient: 0
	grouped: 0
	tags: 
	swallowing: 0
	focusHistoryID: 0

But thesedays I did NOT heard my friends tell me about this issue, maybe it was fixed. I will close this after some check

PILIHU2022 avatar Sep 16 '24 03:09 PILIHU2022

Hi, all! Now it still have this issue. I am using hyprland in Arch Linux

PILIHU2022 avatar Oct 01 '24 07:10 PILIHU2022

This is the information:

System/Version info
Hyprland, built from branch  at commit 0f594732b063a90d44df8c5d402d658f27471dfe  (props: bump version to 0.43.0).
Date: Sun Sep 8 16:48:21 2024
Tag: v0.43.0, commits: 5196

flags: (if any)


System Information:
System name: Linux
Node name: Arch
Release: 6.10.10-zen1-1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:17:51 +0000


GPU information: 
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] [1002:743f] (rev c1) (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/PILIHU/.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=HDMI-A-1,1920x1080@75,0x0,1 # 需要参照wiki,改成你的显示设备
# monitor=,preferred,auto,auto #  # default

# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox

# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf

# Set programs that you use

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    touchpad {
        natural_scroll = no
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

general {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    gaps_in = 5
    gaps_out = 20
    border_size = 2
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)

    layout = dwindle

    # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
    allow_tearing = false
}

decoration {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    # 透明度
    # active_opacity = 0.9
    # inactive_opacity = 0.8           # 非活动
    # fullscreen_opacity = 0.9           # 全屏窗口



    rounding = 5
    
    blur {
        enabled = false
        size = 3
        passes = 1
    }

    drop_shadow = yes
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)
}

animations {
    enabled = yes

    # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

dwindle {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes # you probably want this
}

# 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 = off
}

misc {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    force_default_wallpaper = -1 # Set to 0 to disable the anime mascot wallpapers
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
# device:epic-mouse-v1 {
#     sensitivity = -0.5
# }
    # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default

dwindle {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes # you probably want this
}

# 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 = off
}

misc {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    force_default_wallpaper = -1 # Set to 0 to disable the anime mascot wallpapers
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
# device: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 = nomaximizerequest, class:.* # You'll probably like this.

# window rules
source = ~/.config/hypr/window_rules.conf

# exec
source = ~/.config/hypr/exec_once.conf

# env
source = ~/.config/hypr/env.conf

# keybinds
source = ~/.config/hypr/keybinds.conf

# colors
# source = ~/.config/hypr/dracula.conf


Config File: /home/PILIHU/.config/hypr/window_rules.conf: Read Succeeded
# 强制无圆角
windowrule = rounding 0 override 0 override,^(fcitx)$

# 透明度设置(不透明)
windowrule = opacity 1.0 override 1.0 override,title:(missioncenter)$
windowrule = opacity 1.0 override 1.0 override,^(Minecraft.*)$
windowrulev2 = opacity 1.0 override 1.0 override, class:^(fcitx)$, title:^(Fcitx5 Input Window)$

windowrulev2 = opacity 1.0 override 1.0 override, title:(*)( - YouTube — Mozilla Firefox)

# windowrule = forceinput,  ^eudic$   # ## eudic is work on xwayland
# windowrule = forceinput,  ^org.fcitx.fcitx5-config-qt$   # ## eudic is work on xwayland
windowrule = tile,        ^eudic$

# 不透明
windowrulev2 = opaque,  class:(firefoxdeveloperedition), title:(.*)(bilibili|哔哩哔哩|视频|YouTube|video|Video)   # Firefox 视屏网站
windowrulev2 = opaque,  class:(firefox), title:(.*)(bilibili|哔哩哔哩|视频|YouTube|video|Video)                   # Firefox 视屏网站
windowrulev2 = opaque,  class:(kitty), title:(kitty_.*)                                                           # kitty  指定title的一些应用使用不透明的背景

# 强制浮动
windowrulev2 = float, class:^(QQ)$, title:^(图片查看器)$
windowrulev2 = float, class:^(QQ)$, title:^(视频播放器)$
windowrulev2 = float, class:^(QQ)$, title:^(群聊的聊天记录)$

# 适用小窗口进度条一类的浮动
windowrule=float,title:^(Open File)(.*)$
windowrule=float,title:^(Select a File)(.*)$
windowrule=float,title:^(Choose wallpaper)(.*)$
windowrule=float,title:^(Open Folder)(.*)$
windowrule=float,title:^(Save As)(.*)$
windowrule=float,title:^(Library)(.*)$

# imv 截图用
windowrule = noanim , ^(imv|imv-wayland|flameshot)$
windowrule = float , ^(imv|imv-wayland|flameshot)$
# windowrule = nofocus, ^(imv|imv-wayland)$
windowrule = noinitialfocus, ^(imv|imv-wayland)$
windowrule = opaque, ^(imv|imv-wayland|com.gabm.satty|satty)$
windowrule = keepaspectratio, ^(com.gabm.satty|satty)$

# 固定显示按键
windowrule = move 1029 929,title:^(Floating Window - Show Me The Key)$
windowrulev2 = float, class:(showmethekey-gtk), title:(Floating Window - Show Me The Key)
windowrulev2 = pin, class:(showmethekey-gtk), title:^(Floating Window - Show Me The Key)$
windowrulev2 = noborder, class:(showmethekey-gtk), title:^(Floating Window - Show Me The Key)$
windowrulev2 = nofocus, class:(showmethekey-gtk), title:^(Floating Window - Show Me The Key)$
windowrulev2 = size 870 128, class:(showmethekey-gtk), title:^(Floating Window - Show Me The Key)$

# 截图
windowrule = noanim , ^(imv|imv-wayland)$ # 无窗口动画
windowrule = float ,  ^(imv|imv-wayland)$ # 浮动窗口
# windowrule = nofocus, ^(imv|imv-wayland)$ # 不聚焦
windowrule = opaque,  ^(imv|imv-wayland|com.gabm.satty|satty)$ # 不透明
windowrule = keepaspectratio, ^(com.gabm.satty|satty)$ # 强制窗口纵横比


Config File: /home/PILIHU/.config/hypr/exec_once.conf: Read Succeeded
exec-once = kitty
# exec-once = music-you
# exec-once = dunst
exec-once = mako
exec-once = fcitx5 -d --replace
# exec-once = rm /run/user/1000/swww.socket && rm -rf ~/.cache/swww/* && swww-daemon && bash $HOME/.config/hypr/scripts/swww_randomize.sh -d ~/Desktop/My-Wallpapers
exec-once = swww-daemon
exec-once = bash $HOME/.config/hypr/scripts/swww_randomize.sh -d ~/Pictures/My-Wallpapers
exec-once = bash ~/.config/hypr/scripts/runrclone.sh

exec-once = elisa

# exec-once = python ~/.config/hypr/scripts/Copy-Minecraft-Files-to-backup.py

# 启动自动调节AMD显卡风扇转速
exec-once = doas amdfand set-automatic

exec-once = wl-paste --type text --watch cliphist store   # 存储文本
exec-once = wl-paste --type image --watch cliphist store  # 存储图片
exec-once = wl-clip-persist --clipboard both              # Use Regular and Primary clipboard,long :w

exec-once = waybar -c ~/.config/hypr/waybar/config.jsonc -s ~/.config/hypr/waybar/style/style-dark.css

# exec-once = ~/.config/hypr/scripts/run-backuppy.sh    # Run my backup script

# Auto snapshot(Btrfs only)
exec-once = python ~/.config/hypr/scripts/BTRFS-Subvolume-Snapshot-stable.py

# polkit-kde-authentication-agent-1
exec-once = /usr/lib/polkit-kde-authentication-agent-1
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

# Set dark theme for GTK apps
exec = gsettings set org.gnome.desktop.interface gtk-theme "catppuccin-mocha-blue-standard+default"   # for GTK3 apps
exec = gsettings set org.gnome.desktop.interface color-scheme "catppuccin-mocha-blue-standard+default"   # for GTK4 apps


Config File: /home/PILIHU/.config/hypr/env.conf: Read Succeeded
# Some default env vars.
env = XCURSOR_SIZE,24

# change to qt6ct if you have that
env = QT_QPA_PLATFORMTHEME,qt6ct

# Firefox
env = MOZ_ENABLE_WAYLAND, 1

# QT
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_WAYLAND_DISABLE_WINDOWDECORATION, 1
env = QT_QPA_PLATDORM, wayland, xcb
env = QT_AUTO_SCREEN_SCALE_FACTOR, 1
env = QT_QPA_PLATFORMTHEME, qt5ct

# GTK
env = GDK_SCALE, 1
env = GDK_DPI_SCALE, 1
# env = GTK_THEME, Catppuccin-Macchiato
env = XCURSOR_THEME, Breeze # cursor themes. `$HOME/.local/share/icons/`
env = XCURSOR_SIZE, 24
env = GDK_BACKEND, wayland, x11
env = SDL_VIDEODRIVER, wayland
env = CLUTTER_BACKEND, wayland

# Pathes
$HYPR_CONF_DIR    = $HOME/.config/hypr
$HYPR_SCRIPTS_DIR = $HYPR_CONF_DIR/scripts

# Wallpaper Path
$WALLPAPER_DIR = $HOME/Desktop/My-Wallpapers
$WALLPAPER_SWITCH_SCRIPT = $HYPR_SCRIPTS_DIR/swww_randomize.sh


Config File: /home/PILIHU/.config/hypr/keybinds.conf: Read Succeeded
$mainMod = SUPER
$CTRL = CTRL
$ALT = ALT

bind = $mainMod, return, exec, kitty
bind = $mainMod shift,Q, killactive, 
bind = $mainMod shift,M, exit,
bind = $mainMod, E, exec, dolphin
bind = $mainMod, V, togglefloating, 
# bind = $mainMod, D, exec, tofi-drun
bind = $mainMod, D, exec, wofi --show drun
# bind = $mainMod, D, exec, rofi -show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, w, togglesplit, # dwindle

# 重启Fcitx5
bind = $mainMod, R, exec, fcitx5 -r

# 暂停等歌曲快捷键
bind = $CTRL ALT, space, exec, playerctl play-pause 
bind = $CTRL ALt, left, exec, playerctl previous
bind = $CTRL ALt, right, exec, playerctl next

# 调节音量(支持长按一直调节)
# 见Arch论坛:https://bbs.archlinuxcn.org/viewtopic.php?id=13397
bindle = $CTRL $ALT , up, exec,pactl set-sink-volume @DEFAULT_SINK@ +5%
bindle = $CTRL $ALT , down, exec,pactl set-sink-volume @DEFAULT_SINK@ -5%

# 调节亮度(支持长按一直调节)
bindle = $mainMod ,112,exec,ddcutil setvcp 10 + 5
bindle = $mainMod ,117,exec,ddcutil setvcp 10 - 5

# 打开missioncenter(类似于任务管理器)
bind = $mainMod, C, exec, missioncenter

# Open Tor Browser
bind = $mainMod, T, exec, torbrowser-launcher
# 打开OBS
bind = $mainMod, O, exec, obs

# 打开Firefox
bind = $mainMod, f, exec, firefox

# 将当前窗口发送到特殊工作区
bind = SUPER_ALT,grave,movetoworkspace, special
# 显示和隐藏特殊工作区
bind = SUPER,grave,togglespecialworkspace,

# 将特殊工作区的窗口发送到当前屏幕活动的工作区并平铺?
# bind = SUPER_ALT, w, movetoworkspace, m+1
# bind = SUPER_ALT, w, togglefloating, window

# Move focus with mainMod + arrow keys
bind = $mainMod, l, movefocus, l
bind = $mainMod, h, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, 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
bind = $mainMod, 0, workspace, 10

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

# 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

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Screenshot 截图
# bind = , 1,   exec,                             grim -g "$(slurp -d)" - | wl-copy  && notify-send "选区截图发送至剪切板"    # ## 选区截图发送至剪切板
# bind = , 2,   exec, [noanim]                    grim -g "$(slurp -d)" - | swappy -f - && notify-send "选区截图"            # ## 选区截图
# bind = , 3,   exec, [float;noanim;toggleopaque] grim -g "$(hyprctl activewindow -j | gojq '.at[0]-20, $a, .at[1]-20, $b, .size[0]+40, $c, .size[1]+40' -j --arg a ',' --arg b ' ' --arg c 'x')" - | wl-copy && sleep 1.0 && notify-send "截取当前活动窗口发送至剪切板"  # ## 截取当前活动窗口发送至剪切板     (Send a screenshot of the currently active window to the clipboard)
# bind = , 4,   exec, [float;noanim;toggleopaque] grim -o "$(hyprctl monitors -j | gojq '.[] | select(.focused == true) | .name' -r)" - | wl-copy && notify-send "截取当前显示器全屏并拷贝至剪切板"                                              # ## 截取当前显示器全屏并拷贝至剪切板 (take screenshot and send to clipboard)
# bind = , 5,   exec, [float;noanim;toggleopaque] grim -o "$(hyprctl monitors -j | gojq '.[] | select(.focused == true) | .name' -r)" - | imv -f - & grim -g "$(sleep 0.5 && slurp -d)" - | xargs -x swappy -f - & sleep 0.1 killall imv-wayland && notify-send "暂停截屏"           # ## 暂停屏幕(伪)截屏          (Pause screenshot)
bind = $ALT , j, exec, $HYPR_SCRIPTS_DIR/screenshot 1 5 2 # 选区截屏后编辑
bind = $ALT , k, exec, $HYPR_SCRIPTS_DIR/screenshot 2 5 2 # 全屏截图
bind = $ALT , l, exec, $HYPR_SCRIPTS_DIR/screenshot 3 5 2 # 活动窗口截图
bind = $ALT , h, exec, $HYPR_SCRIPTS_DIR/screenshot 4 5 2 # 选区截屏后发送剪切板

======Config-End========

PILIHU2022 avatar Oct 01 '24 07:10 PILIHU2022

The input method may have this problem when I switch workspace.

PILIHU2022 avatar Oct 04 '24 02:10 PILIHU2022

The input method may have this problem when I switch workspace.

But maybe ONLY have this problem in the appication what run in xwayland

PILIHU2022 avatar Oct 04 '24 02:10 PILIHU2022