2019-03-18 16:56:03 +01:00
|
|
|
#!/bin/sh
|
2020-02-06 23:21:15 +01:00
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
2020-01-20 17:49:21 +01:00
|
|
|
# Control X's pointer with the keyboard. Activate by pressing <C-;>
|
2020-01-25 19:36:24 +01:00
|
|
|
keynav daemonize
|
2020-01-20 17:49:21 +01:00
|
|
|
|
2020-01-31 13:45:48 +01:00
|
|
|
# Startup Emacs (and EXWM). This is built by calling `make install` from within
|
|
|
|
# ~/dotfiles/emacs.
|
Preferring to start wpcarros-emacs with dbus-launch
When I ran `pass show some/password`, gpg, which uses pinentry would start its
ncurses password prompt. For many this wouldn't be a problem but my current
vterm version cannot send the <return> key to ncurses, so once that prompt
appears, I cannot get rid of it without C-c and killing the shell. For a day or
more I just opened suffered through this.
Today I dug more into the issue and when I ran `pinentry --version` it warned
that it couldn't connect to DBUS. After searching for more information on this,
people with similar issues recommended starting their window managers with
`dbus-launch`. I previously started Emacs with `dbus-launch`, but only because
some i3 documentation told me to do so and I just copied them. Then I switched
to EXWM and copied that pattern over. A friend of mine uses EXWM and starts his
without calling `dbus-launch` but `exec emacs`. I mirrored this thinking that I
no longer needed `dbus-launch`. What I didn't know, however, was that this
friend was using a Nix-built Emacs (like me) except that his wrapped a native
Emacs installation while mine doesn't. His natively wrapped Emacs installation
has the proper variables set to interact with dbus and other important Linuxy
things that I don't fully understand. Since I'm using a Nix-built Emacs, some of
my variables are unset or set to different values than programs expect. This is
why when I try and start `gnome-terminal` or `terminator`, they refuse to start
and warn about many unset or incorrectly variables and not being able to bind to
sockets, etc.
This change reverts back to using `dbus-launch` until I have a better
understanding of Linux, Nix, etc.
2020-02-11 00:24:38 +01:00
|
|
|
dbus-launch --exit-with-session wpcarros-emacs
|