about summary refs log tree commit diff
path: root/configs/shared/.xsessionrc.shared
blob: b5cbf598d43d273597b1e3d22f2ae17794d0e0ae (plain) (blame)
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
#!/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 the Emacs server
# TODO: Consider starting this with `systemctl --user enable emacs.service`
emacs --daemon

# 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 &

# Startup Emacs (and EXWM).
# TODO: Does this prevent the Emacs server (i.e. `emacs --daemon`) from running?
# TODO: Do I even want `--exit-with-session`? This makes debugging Emacs more
# expensive than perhaps it should be.
exec dbus-launch --exit-with-session emacs