tft每日頭條

 > 生活

 > archlinux桌面環境選擇

archlinux桌面環境選擇

生活 更新时间:2025-02-03 16:54:23

安裝好arch很簡單,但是各種各樣得心應手的配置需要自己設置,這裡說一下關于觸摸闆的設置

當然,如果你是一個老玩家,直接去讀archwiki就好了,下面寫的内容也基本是從wiki上摘抄而來

先安裝驅動,我這裡已經安裝過了,就取消了安裝ys命令= yay -S

archlinux桌面環境選擇(archLinux觸摸闆設置)1

然後到 /etc/X11/xorg.conf.d目錄下查看下面有什麼文件,我這裡默認的是什麼都沒有

那麼創建一個符号鍊接

# arch @ lenovo in /etc/X11/xorg.conf.d [8:55:09] $ s ln -s /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf # arch @ lenovo in /etc/X11/xorg.conf.d [8:55:14] $ ls 40-libinput.conf # arch @ lenovo in /etc/X11/xorg.conf.d [8:55:15] $ ll 總用量 0 lrwxrwxrwx 1 root root 43 2021-03-08 08:55:14 40-libinput.conf -> /usr/share/X11/xorg.conf.d/40-libinput.conf # arch @ lenovo in /etc/X11/xorg.conf.d [8:55:27] $ vi 40-libinput.conf

使用命令查看一下觸摸闆配置

xinput list

archlinux桌面環境選擇(archLinux觸摸闆設置)2

可以看到touchpad的編号id=14

archlinux桌面環境選擇(archLinux觸摸闆設置)3

Device Enabled (167): 1

Device Enabled 是屬性名,括号中的 167 是屬性ID,

1/0 表示啟用/禁用

當然也可以直接編輯配置文件

sudo nvim /etc/X11/xorg.conf.d/40-libinput.conf

我這裡添加裡這麼兩行

輕觸代替點擊,雙指代替右鍵

archlinux桌面環境選擇(archLinux觸摸闆設置)4

重啟電腦即可

更加高級安裝下面這個軟件

# arch @ lenovo in /etc/X11/xorg.conf.d [9:22:53] $ ys libinput-gestures 正在解析依賴關系... 正在查找軟件包沖突... 軟件包 (1) libinput-gestures-2.60-1 下載大小: 0.02 MiB 全部安裝大小: 0.07 MiB :: 進行安裝嗎? [Y/n] :: 正在獲取軟件包...... libinput-gestures-2.60-1-any 24.4 KiB 0.00 B/s 00:00 [########################################] 100% (1/1) 正在檢查密鑰環裡的密鑰 [########################################] 100% (1/1) 正在檢查軟件包完整性 [########################################] 100% (1/1) 正在加載軟件包文件 [########################################] 100% (1/1) 正在檢查文件沖突 [########################################] 100% (1/1) 正在檢查可用存儲空間 [########################################] 100% :: 正在處理軟件包的變化... (1/1) 正在安裝 libinput-gestures [########################################] 100% === INSTALLATION NOTES for libinput-gestures === A user must be a member of the input group, i.e. run: sudo gpasswd -a $USER input A user can start libinput-gestures from their DE, or run: libinput-gestures-setup start A user can enable auto start of libinput-gestures, i.e. run: libinput-gestures-setup autostart Configuration files are at: /etc/libinput-gestures.conf (system wide default) $HOME/.config/libinput-gestures.conf (optional per user) libinput-gestures 的可選依賴 wmctrl: required for _internal command, as per default configuration xdotool: simulates keyboard and mouse actions for Xorg or XWayland based apps [已安裝] :: 正在運行事務後鈎子函數... (1/3) Arming ConditionNeedsUpdate... (2/3) Updating icon theme caches... (3/3) Updating the desktop file MIME type cache...

根據提示,運行下面三條命令

A user must be a member of the input group, i.e. run: sudo gpasswd -a $USER input A user can start libinput-gestures from their DE, or run: libinput-gestures-setup start A user can enable auto start of libinput-gestures, i.e. run: libinput-gestures-setup autostart

安裝一下gui,不是必須,可以直接編輯配置文件

ys gestures

這個軟件是借助xdotool來用的,所以也要安裝一下

ys xdotool

然後可以綁定觸摸闆到xdotool

,

更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!

查看全部

相关生活资讯推荐

热门生活资讯推荐

网友关注

Copyright 2023-2025 - www.tftnews.com All Rights Reserved