mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 15:07:23 +01:00
use GNU stow for setup
This commit is contained in:
28
x11/.xinitrc
Executable file
28
x11/.xinitrc
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/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
|
||||
|
||||
eval $(gpg-agent -s --enable-ssh-support --daemon --write-env-file $HOME/.gpg-agent-info)
|
||||
|
||||
xrdb $HOME/.Xresources
|
||||
|
||||
case $1 in
|
||||
xterm)
|
||||
exec xterm
|
||||
;;
|
||||
herbstluftwm) # default is herbstluftwm
|
||||
exec herbstluftwm --locked
|
||||
;;
|
||||
*)
|
||||
exec $1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user