Add gpg-agent to startup.
[james-home-plus.git] / .xsession
blobf2c91b30eac909d258add8f21af214d53ee8deca
1 #! /bin/sh
2 # This script is run when logging in via GDM to gnome.
3 # I use it to start stuff I don't want to configure gnome to start.
5 # Note that this script is run before the session is fully setup.
6 # As a consequence it can't start a terminal.
8 # Source global environment file.
9 . $HOME/.environment
11 # pull in keys, if installed
12 if [ -x "$(which keychain)" ]; then
13 SSH_ASKPASS=/usr/bin/ssh-askpass
14 export SSH_ASKPASS
15 keychain --inherit any-once --ignore-missing id_rsa id_ed25519
16 host=`uname -n`
17 [ -f ~/.keychain/$host-sh ] && . ~/.keychain/$host-sh
18 [ -f ~/.keychain/$host-sh-gpg ] && . ~/.keychain/$host-sh-gpg
20 if [ -x "$(which gpgconf)" ]; then
21 # if gnupg is installed, we should gpgconf and gpg-connect-agent.
22 gpg-connect-agent /bye
23 export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
26 # I use utf-8 int X.
27 #LANG=en_US.UTF-8
28 #export LANG
30 HOSTNAME=$(hostname)
32 # This makes X work when I su to root.
33 if [ -z "$XAUTHORITY" ]; then
34 XAUTHORITY=$HOME/.Xauthority
35 export XAUTHORITY
37 #[ -r $HOME/.guix-profile/share/fonts/terminus/fonts.dir ] && xset +fp $HOME/.guix-profile/share/fonts/terminus
38 #[ -r $HOME/.guix-profile/share/fonts/X11/75dpi/fonts.dir ] && xset +fp $HOME/.guix-profile/share/fonts/X11/75dpi
39 #[ -r $HOME/.guix-profile/share/fonts/X11/100dpi/fonts.dir ] && xset +fp $HOME/.guix-profile/share/fonts/X11/100dpi
40 #[ -r $HOME/.guix-profile/share/fonts/X11/misc/fonts.dir ] && xset +fp $HOME/.guix-profile/share/fonts/X11/misc
41 #[ -r $HOME/.guix-profile/share/fonts/X11/truetype/fonts.dir ] && xset +fp $HOME/.guix-profile/share/fonts/truetype
43 xrdb -merge $HOME/.Xresources
44 xmodmap ~/.Xmodmap
45 xset s off
47 ## my-procmeter &
49 xsetroot -solid red
50 xsetroot -cursor_name left_ptr
51 #exec startfluxbox
52 #exec gnome-session
53 #exec ratpoison
54 exec stumpwm