2019-03-18 16:56:03 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-10-09 13:13:56 +02:00
|
|
|
# Might be unnecessary...
|
|
|
|
. ~/.profile
|
2019-03-18 16:56:03 +01:00
|
|
|
|
|
|
|
export DESKTOP_SESSION=cinnamon # gnome for trusty.
|
|
|
|
|
|
|
|
# Desktop background color.
|
|
|
|
xsetroot -solid "#333333"
|
|
|
|
|
2019-10-09 13:13:56 +02:00
|
|
|
# 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
|
|
|
|
|
2019-03-18 21:57:46 +01:00
|
|
|
# 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
|
2019-03-18 16:56:03 +01:00
|
|
|
|
2019-03-21 14:57:15 +01:00
|
|
|
# Start the Emacs server
|
2019-10-09 13:13:56 +02:00
|
|
|
# TODO: Consider starting this with `systemctl --user enable emacs.service`
|
2020-01-06 16:01:39 +01:00
|
|
|
emacs --daemon
|
2019-03-21 14:57:15 +01:00
|
|
|
|
2019-10-09 13:13:56 +02:00
|
|
|
# Start ssh-agent
|
|
|
|
eval "$(ssh-agent -s)"
|
|
|
|
|
|
|
|
# TODO: Prefer `systemctl start docker.service`
|
|
|
|
dockerd &
|
|
|
|
|
2019-05-13 17:35:38 +02:00
|
|
|
# start compton for shadows, transparency, fading, etc.
|
2019-10-09 13:13:56 +02:00
|
|
|
# TODO: Consider starting this with `systemctl --user enable compton.service`
|
2019-04-15 14:24:28 +02:00
|
|
|
compton &
|
|
|
|
|
2019-10-09 13:13:56 +02:00
|
|
|
# `unclutter` hide the cursor in when it is inactive
|
|
|
|
unclutter &
|
2019-03-23 17:31:59 +01:00
|
|
|
|
2019-10-09 13:13:56 +02:00
|
|
|
# Startup Emacs (and EXWM).
|
2020-01-06 15:58:22 +01:00
|
|
|
# TODO: Does this prevent the Emacs server (i.e. `emacs --daemon`) from running?
|
2020-01-06 16:01:39 +01:00
|
|
|
# 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
|