解决hyprland环境下pacman -Syu 后 gestures:workspace_swipe配置问题

发现错误

在hyprland桌面环境下运行了pacman -Syu 进行系统更新 之后跳出的错误

如下图:
bug1

解决问题

这个信息告诉我hyprland配置文件下,有两行的配置不可以使用(在更新之前是可以使用的)

于是打开配置文件查看配置

1
sudo vim ~/.config/hypr/UserConfigs/UserSettings.conf

发现在gestures配置项中是这样配置的:

1
2
3
4
5
6
7
8
9
10
11
gestures {
workspace_swipe = true
workspace_swipe_fingers = 3
workspace_swipe_distance = 500
workspace_swipe_invert = true
workspace_swipe_min_speed_to_force = 30
workspace_swipe_cancel_ratio = 0.5
workspace_swipe_create_new = true
workspace_swipe_forever = true
#workspace_swipe_use_r = true #uncomment if wanted a forever create a new workspace with swipe right
}

其中workspace_swipe = true workspace_swipe_fingers = 3 这两个配置就是警告中报错的两个配置,把这两项注释或者删除就会发现警告消失了。

新的问题

删除的两行配置是控制hyprland桌面下的触控板三指功能的,如果删除的话就会发现触控板的三指左右滑动切换工作区的功能消失了,如果想要恢复这个功能并且不触发警告的话,可以将配置改为:

1
2
3
4
5
6
7
8
9
10
11
12
13
gesture = 3, horizontal, workspace
gestures {
# workspace_swipe = true
# workspace_swipe_fingers = 3
workspace_swipe_distance = 500
workspace_swipe_invert = true
workspace_swipe_min_speed_to_force = 30
workspace_swipe_cancel_ratio = 0.5
workspace_swipe_create_new = true
workspace_swipe_forever = true
#workspace_swipe_use_r = true #uncomment if wanted a forever create a new workspace with swipe right
}

这样问题就解决了