split off xinitrc stuff

This commit is contained in:
Mark Riedesel 2020-05-09 10:21:12 -05:00
parent c994735e1c
commit dd2b83199d
5 changed files with 53 additions and 3 deletions

View file

@ -1 +0,0 @@
.cache/wal/colors.Xresources

2
Xresources Normal file
View file

@ -0,0 +1,2 @@
#include ".cache/wal/colors.Xresources"
#include ".Xresources.local"

13
_xinitrc/xinitrc.all Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
if_have() {
command -v $1 2>&1> /dev/null
}
if_have setxkbmap && { setxkbmap -option caps:swapescape & }
if_have compton && { compton & }
if_have wal && { wal -t -q -i ~/wallpaper & }
if_have lxsession && { lxsession -s i3 & }
if_have pnmixer && { pnmixer & }
if_have dropbox && { dropbox & }
if_have syncthing-gtk && { syncthing-gtk & }

5
_xinitrc/xinitrc.loki Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
compton &
wal -t -q -i ~/wallpaper &
lxsession -s i3 &
syncthing-gtk -m &

5
_xinitrc/xinitrc.vaettr Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
# compton &
# wal -t -q -i ~/wallpaper &
# lxsession -s i3 &
# syncthing-gtk -m &

30
xinitrc
View file

@ -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