-
Notifications
You must be signed in to change notification settings - Fork 0
/
Xsession
executable file
·50 lines (39 loc) · 1.27 KB
/
Xsession
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
43
44
45
46
47
48
49
50
#!/bin/bash
# Starts user dbus daemon
eval $( /usr/bin/dbus-launch --sh-syntax --exit-with-session )
# Configures screen on identified hostname
case $(hostname) in
thor) /usr/local/bin/screen-config;;
esac
# Disables speaker
xset -b
# Loads X applications configuration
/usr/bin/xrdb -load ~/.Xresources
/usr/bin/setxkbmap fr bepo
# Starts gnome-keyring-daemon and exports its variables
eval $( /usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export GNOME_KEYRING_CONTROL
export SSH_AUTH_SOCK
#export GPG_AGENT_INFO
# Starts pulseaudio
/usr/bin/start-pulseaudio-x11
# Starts other components in the background
/usr/bin/compton -b
/usr/bin/parcellite &
/usr/bin/dropbox &
/usr/bin/xautolock -detectsleep -time 10 -locker "i3lock -i -t $HOME/.lockscreen.png" &
# Starts polkit server
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# Starts polkit dependant services
/usr/bin/nm-applet &
# Starts autossh tunnel to honir
#if [ -f ~/.ssh/config ]; then
# if grep -q 'Host honir-tunnel$' ~/.ssh/config; then
# /usr/bin/autossh -xaNf -M 20000 honir-tunnel
# fi
# if [ -d ~/.config/lsync ] && grep -q 'Host honir$' ~/.ssh/config; then
# /usr/bin/lsyncd ~/.config/lsync/etc/lsyncd-client.conf
# ~/.config/lsync/bin/lsync &
# fi
#fi
exec /usr/bin/awesome