tvl-depot/configs/shared/.xsessionrc.shared
William Carroll b5c0d29601 Change Emacs startup
Remove `dbus-launch` and prefer simply `exec emacs`. Add `--no-site-file` and
`--no-site-lisp` flags.

Temporarily disable `google-stuff.el` because it's unavailable with the
`--no-site-lisp` flag.

This should all be fixed when I fully nixify my Emacs.
2020-01-27 14:50:09 +00:00

30 lines
694 B
Bash

#!/bin/sh
# Might be unnecessary...
. ~/.profile
export DESKTOP_SESSION=cinnamon # gnome for trusty.
# Desktop background color.
xsetroot -solid "#333333"
# Set fallback cursor.
xsetroot -cursor_name left_ptr
# Start ssh-agent
eval "$(ssh-agent -s)"
# TODO: Prefer `systemctl start docker.service`
dockerd &
# start compton for shadows, transparency, fading, etc.
# TODO: Consider starting this with `systemctl --user enable compton.service`
compton &
# `unclutter` hide the cursor in when it is inactive
unclutter &
# Control X's pointer with the keyboard. Activate by pressing <C-;>
keynav daemonize
# Startup Emacs (and EXWM).
exec emacs --debug-init --no-site-file --no-site-lisp