-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.xsession
More file actions
executable file
·156 lines (120 loc) · 2.99 KB
/
.xsession
File metadata and controls
executable file
·156 lines (120 loc) · 2.99 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#!/bin/bash
# bash so we can use stuff like declare
#xsetroot
# Set background
BACKGROUND="/home/taylor/Pictures/backgrounds/nightfall_skyline-wallpaper-2560x1440.jpg"
if [ -n "$BACKGROUND" ] ; then
if [ -x `which feh` ] ; then
if [ -f $HOME/.fehbg ] ; then
sh $HOME/.fehbg
(sleep 60 ; sh $HOME/.fehbg ) &
else
feh --image-bg black --bg-center "$BACKGROUND"
fi
elif [ -x `which qiv` ] ; then
qiv -z "$BACKGROUND"
elif [ -x `which awsetbg` ] ; then
awsetbg "$BACKGROUND"
fi
elif [ -x `which xsetroot` ] ; then
xsetroot -solid black
fi
OS=`uname -s`
if [ -f "/sys/class/dmi/id/product_name" ] ; then
PRODNAME=$(cat /sys/class/dmi/id/product_name)
fi
[[ -f "$HOME/.xmodmap" ]] &&
xmodmap $HOME/.xmodmap
#if [ -f `which xcompmgr` ] ; then
# xcompmgr -fF -I-.002 -O-.003 -D1 &
#fi
#if [ "$OS" = "Darwin" ] ; then
#quartz-wm --only-proxy &
#~/sw/bin/autocutsel &
#fi
# Load the .Xdefaults (same as .Xresources) file
[[ -f $HOME/.Xdefaults ]] &&
xrdb -merge $HOME/.Xdefaults
#xrdb -l $HOME/.Xdefaults
XMSG="xmessage"
XMSGOPTS="-buttons OK:0 -default OK"
mymsg() {
if [ "$1" = "x" ] ; then
shift
$XMSG $XMSGOPTS $* &
else
notify-send "$*" &
fi
}
msgqi=0
declare -a MSGQ
addmsg() {
echo "adding msg $* at slot $msgqi"
MSGQ[$msgqi]="$*"
msgqi=$(( $msgqi+1 ))
}
showmsgs() {
i=0
n=${#MSGQ[@]}
while [ ! $i = $n ] ; do
mymsg ${MSGQ[$i]}
i=$(( $i+1 ))
sleep 3
done
unset MSGQ
unset msgqi
}
#[ -x `which autocutsel` ] && autocutsel -selection PRIMARY &
addmsg "no more messages"
(
sleep 5
showmsgs
) &
# See http://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html
#echo "Starging gpg agent in daemon mode"
#gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info"
#eval $(gpg-agent --daemon)
#eval $(cat ${HOME}/.gpg-agent-info)
#ssh-agent -t $SAMAXTIME $WM
#brightside &
#wicd-gtk -t -a &
#( sleep 10 ; gnome-session ) &
disper -e
#gnome-session &
#exec awesome
#
# screen powersave
xset +dpms
xset dpms 0 0 300
eval `dbus-launch`
syndaemon -t -k -i 2 -d &
#xmodmap ~/.xmodmap &
xinput set-prop 9 "Evdev Middle Button Emulation" 1
mymsg "redshift starting"
redshiftgui &
# from https://awesome.naquadah.org/wiki/Quickly_Setting_up_Awesome_with_Gnome
#awesome &
#exec ck-launch-session gnome-session # ck-launch-session is advised for the dbus stuff to work fine.
#
#export OOO_FORCE_DESKTOP=gnome
#eval `gnome-keyring-daemon` &
#exec ck-launch-session gnome-session --session awesome "$@"
notify-listener.py &
start-pulseaudio-x11 &
#pasystray &
pnmixer &
# Composite Manager
#unagi &
#cairo-compmgr &
#xcompmgr -cC &
#xcompmgr -c &
mymsg "Starting srandrd to auto handle screen layout with screen-layout and autorandr"
srandrd screen-layout auto &
mymsg "Starting copyq"
copyq &
mymsg "Starting xscreensaver"
xscreensaver -no-splash &
mymsg "Starting xautolock using lockscreen with 15min timer"
xautolock -locker lockscreen -time 15 &
[ ! -s ~/.config/mpd/pid ] && mpd &
exec awesome