about summary refs log tree commit diff
path: root/configs/shared/.xsessionrc.shared
blob: f0f8355a820d3c210e048d9e25d3d0d8f7bad81e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/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

# Set KBDs.
xmodmap -e 'remove Lock = Caps_Lock'
xmodmap -e 'keysym Caps_Lock = Escape'

# set key repeat preferences
# NOTE: This is now being handled with my keyboard.el module in Emacs.
# xset r rate 250 60

# start tmux with a few commonly used sessions
# TODO: consider moving this else like ~/.profile, so it doesn't depend on X.
# This might be better for SSH.
tmux new -d -s main

# 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?
# NOTE: wpcarros-emacs is built with `nix-env -iA emacs -f .` from
# `CWD=~/Dropbox/dotfiles`
exec dbus-launch --exit-with-session wpcarros-emacs