split off xinitrc stuff
This commit is contained in:
parent
c994735e1c
commit
dd2b83199d
5 changed files with 53 additions and 3 deletions
30
xinitrc
30
xinitrc
|
@ -1,3 +1,29 @@
|
|||
cd $
|
||||
setxkbmap -option caps:swapescape &
|
||||
#!/bin/sh
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/*; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
# Merge .Xresources
|
||||
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
|
||||
|
||||
# export ssh-user-agent variables
|
||||
eval $(systemctl --user show-environment | grep SSH_AUTH_SOCK)
|
||||
export SSH_AUTH_SOCK
|
||||
|
||||
# setxkbmap -option caps:swapescape &
|
||||
|
||||
# Per-host init
|
||||
filepath=$(dirname $(readlink -f $0))
|
||||
for f in "all" "$(hostname)"; do
|
||||
f="${filepath}/_xinitrc/xinitrc.$f"
|
||||
echo $f
|
||||
[ -e "$f" ] && . "$f"
|
||||
done
|
||||
unset filepath
|
||||
|
||||
# Launch i3!
|
||||
exec i3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue