-
Notifications
You must be signed in to change notification settings - Fork 7
/
autostart
89 lines (73 loc) · 2.35 KB
/
autostart
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
## Openbox autostart.sh
## ====================
## When you login to your CrunchBang Openbox session, this autostart script
## will be executed to set-up your environment and launch any applications
## you want to run at startup.
##
## Note*: some programs, such as 'nm-applet' are run via XDG autostart.
## Run '/usr/lib/openbox/openbox-xdg-autostart --list' to list any
## XDG autostarted programs.
##
## More information about this can be found at:
## http://openbox.org/wiki/Help:Autostart
##
## If you do something cool with your autostart script and you think others
## could benefit from your hack, please consider sharing it at:
## http://crunchbang.org/forums/
##
## Have fun & happy CrunchBangin'! :)
## GNOME PolicyKit and Keyring
eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &
## Set root window colour
hsetroot -solid "#2E3436" &
## Group start:
## 1. nitrogen - restores wallpaper
## 2. compositor - start
## 3. sleep - give compositor time to start
## 4. tint2 panel
(\
nitrogen --restore && \
cb-compositor --start && \
sleep 2s && \
tint2 \
) &
## Volume control for systray
(sleep 2s && pnmixer) &
## Volume keys daemon
xfce4-volumed &
## Enable power management
xfce4-power-manager &
## Start Thunar Daemon
thunar --daemon &
## Detect and configure touchpad. See 'man synclient' for more info.
if egrep -iq 'trackpad' /proc/bus/input/devices; then
synclient VertEdgeScroll=0 &
synclient HorizTwoFingerScroll=1 &
synclient AreaRightEdge=850 &
synclient AreaLeftEdge=50 &
synclient TapButton1=1 &
synclient TapButton2=3 &
synclient TapButton3=2 &
synclient FingerHigh=10 &
synclient FingerLow=10 &
synclient MaxTapMove=20 &
fi
## Start xscreensaver
xscreensaver -no-splash &
## Start Clipboard manager
(sleep 3s && clipit) &
## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25 &
## Turn on/off system beep
xset b off &
## The following command runs hacks and fixes for #! LiveCD sessions.
## Safe to delete after installation.
cb-cowpowers &
## cb-welcome - post-installation script, will not run in a live session and
## only runs once. Safe to remove.
(sleep 10s && cb-welcome --firstrun) &
## cb-fortune - have Waldorf say a little adage
#(sleep 120s && cb-fortune) &
## Run the conky
conky -q &