-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xprofile
43 lines (34 loc) · 1.24 KB
/
.xprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# dirs
export PATH=$PATH:/usr/local/share/scripts:/usr/local/games:usr/local/bin
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export SCRIPTS_DIR=/usr/local/share/scripts #$HOME/.local/share/scripts #/usr/local/scripts
export WALLPAPER_DIR=$HOME/.local/share/wallpaper.png
export WALLPAPERS_DIR=$HOME/images/wallpapers/
export MEDIA_DIR=$HOME/Music
# devices
#export TOUCHPAD_ID=14
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
xbindkeys=$XDG_CONFIG_HOME/xbindkeys/config
[ -f $sysresources ] && xrdb -merge $sysresources
[ -f $sysmodmap ] && xmodmap $sysmodmap
[ -f "$userresources" ] && xrdb -merge "$userresources"
[ -f "$usermodmap" ] && xmodmap "$usermodmap"
[ -f "$xbindkeys" ] && xbindkeys -f $xbindkeys
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# source scripts
[ -d "$SCRIPTS_DIR" ] && source $SCRIPTS_DIR/**/*
# external monitor
[ -x $SCRIPTS_DIR/conmon ] && $SCRIPTS_DIR/conmon
# background
[ -f $WALLPAPER_DIR ] && [ -x $SCRIPTS_DIR/setwall ] && $SCRIPTS_DIR/setwall &