我制作了一个启动 bash 脚本,以便在 wm 启动之前运行。不幸的是,在 X 和 WM 启动后,这个脚本仍然列在 in 中htop
,我不知道为什么......
这是启动脚本
#!/bin/bash
#Bind Multimedia Keys with xbindkeys
xbindkeys
#Turn X-Screensaver off
xset -dpms; xset s off
#Set Cursor to Arrow-Shape
xsetroot -cursor_name left_ptr
# Start Compton for compositing
compton --config ~/.config/compton.conf -b
# Set Wallpaper
feh --bg-fill ~/pictures/makoto-shinkai_00412767.jpg
# Start Dropbox
[ -e /usr/bin/dropboxd ] && /usr/bin/dropboxd &
# Start Emacs-Daemon
#/usr/bin/emacs --daemon
exit
这是我的 .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
$HOME/bin/xstartup
# i3 is kept as default
session=${1:-i3}
case $session in
bspwm ) exec bspwm;;
i3|i3wm ) exec i3;;
hlwm ) exec herbstluftwm;;
# No known session, try to run it as command
*) exec $1;;
esac