mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 14:37:25 +01:00
37 lines
696 B
Bash
Executable File
37 lines
696 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# ~/.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
|
|
|
|
pulseaudio --start
|
|
eval $(gpg-agent -s --enable-ssh-support --daemon --write-env-file $HOME/.gpg-agent-info)
|
|
|
|
xrdb $HOME/.Xresources
|
|
|
|
# add additional fonts
|
|
xset +fp /usr/share/fonts/local
|
|
xset fp rehash
|
|
|
|
echo $1 > ~/.xinitrc-arg
|
|
|
|
case $1 in
|
|
xterm)
|
|
exec xterm
|
|
;;
|
|
hlwm|*) # default is herbstluftwm
|
|
xbindkeys -n &
|
|
urxvtd &
|
|
udiskie --tray &
|
|
systemctl --user start xautolock
|
|
exec herbstluftwm --locked
|
|
;;
|
|
esac
|