![使用 xbindkeys 将暂停功能分配给 Pause/Break 键](https://linux22.com/image/1028773/%E4%BD%BF%E7%94%A8%20xbindkeys%20%E5%B0%86%E6%9A%82%E5%81%9C%E5%8A%9F%E8%83%BD%E5%88%86%E9%85%8D%E7%BB%99%20Pause%2FBreak%20%E9%94%AE.png)
Xbindkeys 确实有人在做一些“花式舞蹈”尝试将命令分配给某个键。
使用这里的材料,
https://wiki.archlinux.org/title/Xbindkeys#GUI_method
这是在.xbindkeysrc中。
systemctl suspend
m:0x0 + c:127
我到了这一步却不知所措???
Making changes permanent
Once you are done configuring your keys, edit your xprofile or xinitrc file (depending on your window manager) and place xbindkeys
before the line that starts your window manager or DE.
这显示了我的窗口管理器。
wmctrl -m
Name: Metacity (Marco)
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: N/A
我找不到 xprofile 或 xinitrc??