6e77fc7978
I attempted to Nixify my Emacs over winter break. I made some meaningful progress, but not enough progress to use my Nixified Emacs setup. Since Emacs is my primary editor and my window manager at work and at home, having a partially baked setup is untenable at the moment. Reverting these changes so that I can get on with my work, but checking them in so that I can pick up where I left off one day.
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
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
|
|
|
|
# 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?
|
|
# 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
|