Jos*_*hua 6 arch-linux xorg x11 awesome xinput
我试图在我的.xinitrc脚本中运行一些 bash 命令,但窗口管理器启动时这些命令没有正常运行。
我运行 Arch Linux 时,窗口管理器被称为“awesome”,并以startx. 这是我的~/.xinitrc文件的全部内容:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
xinput set-int-prop "TPPS/2 IBM Trackpoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM Trackpoint" "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop "TPPS/2 IBM Trackpoint" "Evdev Wheel Emulation Timeout" 8 200
xinput set-int-prop "TPPS/2 IBM Trackpoint" "Evdev Wheel Emulation Axes" 8 6 7 4 5
rfkill block bluetooth
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec awesome
Run Code Online (Sandbox Code Playgroud)
您可能已经注意到,我正在尝试关闭我的蓝牙并激活我的笔记本电脑上的轨迹点滚动。这些xinput和rfkill命令中的每一个在手动输入时都可以工作,但是当我运行startx.
这到底是什么问题?:(