split off xinitrc stuff
This commit is contained in:
parent
c994735e1c
commit
dd2b83199d
5 changed files with 53 additions and 3 deletions
|
@ -1 +0,0 @@
|
|||
.cache/wal/colors.Xresources
|
2
Xresources
Normal file
2
Xresources
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include ".cache/wal/colors.Xresources"
|
||||
#include ".Xresources.local"
|
13
_xinitrc/xinitrc.all
Executable file
13
_xinitrc/xinitrc.all
Executable 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
5
_xinitrc/xinitrc.loki
Executable 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
5
_xinitrc/xinitrc.vaettr
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
# compton &
|
||||
# wal -t -q -i ~/wallpaper &
|
||||
# lxsession -s i3 &
|
||||
# syncthing-gtk -m &
|
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