blob: 13886fe755b0110c6e922a6357c5b31f6b6b185e (
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
|
#!/bin/sh
source ~/.profile
export DESKTOP_SESSION=cinnamon # gnome for trusty.
# NOTE: This may break your compose key.
# See http://g/i3-users/YBexXGbik7E for more details.
# 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.
export GTK_IM_MODULE=xim
# Desktop background color.
xsetroot -solid "#333333"
# 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 `clipmenud`,
# TODO: research if this would be better handled by init/clipmenud.service?
clipmenud &
# Start the Emacs server
emacs --daemon
# start compton for shadows, transparency, fading, etc.
compton &
# set kbds
xmodmap -e 'remove Lock = Caps_Lock'
xmodmap -e 'keysym Caps_Lock = Escape'
# since we separated our i3 configurations between a shared and device-specific
# setup, we need to make sure that when we start an X session, our i3
# configuration is up-to-date.
cat ~/.config/i3/config.{shared,device} >~/.config/i3/config
# set key repeat preferences
xset r rate 250 60
|