|
|
@ -18,10 +18,14 @@ envvars() { |
|
|
|
[ -z "$XDG_PICTURES_DIR" ] && export XDG_PICTURES_DIR=~/Pictures |
|
|
|
[ -z "$XDG_PICTURES_DIR" ] && export XDG_PICTURES_DIR=~/Pictures |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setupxdgruntimedir() { |
|
|
|
setupxdgdir() { |
|
|
|
mkdir -p $XDG_RUNTIME_HOME |
|
|
|
mkdir -p $XDG_RUNTIME_HOME |
|
|
|
chmod 700 $XDG_RUNTIME_HOME |
|
|
|
chmod 700 $XDG_RUNTIME_HOME |
|
|
|
chown "$USER:$USER" "$XDG_RUNTIME_HOME" |
|
|
|
chown "$USER:$USER" "$XDG_RUNTIME_HOME" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p "$XDG_CACHE_HOME/sxmo/" |
|
|
|
|
|
|
|
chmod 700 "$XDG_CACHE_HOME" |
|
|
|
|
|
|
|
chown "$USER:$USER" "$XDG_CACHE_HOME" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
xdefaults() { |
|
|
|
xdefaults() { |
|
|
@ -69,16 +73,17 @@ customxinit() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
startdwm() { |
|
|
|
startdwm() { |
|
|
|
|
|
|
|
|
|
|
|
exec dbus-run-session sh -c " |
|
|
|
exec dbus-run-session sh -c " |
|
|
|
$0 daemonsneedingdbus; |
|
|
|
$0 daemonsneedingdbus; |
|
|
|
. $0 customxinit; |
|
|
|
. $0 customxinit; |
|
|
|
dwm 2> ~/.dwm.log |
|
|
|
dwm 2> "$XDG_CACHE_HOME/sxmo/dwm.log" |
|
|
|
" |
|
|
|
" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
xinit() { |
|
|
|
xinit() { |
|
|
|
envvars |
|
|
|
envvars |
|
|
|
setupxdgruntimedir |
|
|
|
setupxdgdir |
|
|
|
xdefaults |
|
|
|
xdefaults |
|
|
|
daemons |
|
|
|
daemons |
|
|
|
startdwm |
|
|
|
startdwm |
|
|
|