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.
|
|
|
|
|
|
|
|
# NOTE: This may break your compose key.
|
|
|
|
# See http://g/i3-users/YBexXGbik7E for more details.
|
2019-05-13 17:35:38 +02:00
|
|
|
# NOTE: IM_MODULE is an "Input Method" module, which I believe affects the way
|
|
|
|
# keyboard events are processed. `xim` is "X Input Method"; other options
|
|
|
|
# include: `ibus`, `fcitx`, but I'm unsure what features each offers.
|
2019-10-09 13:13:56 +02:00
|
|
|
# export GTK_IM_MODULE=xim
|
2019-03-18 16:56:03 +01:00
|
|
|
|
|
|
|
# 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`
|
2019-03-21 14:57:15 +01:00
|
|
|
emacs --daemon
|
|
|
|
|
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).
|
|
|
|
exec dbus-launch --exit-with-session emacs
|