aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/xprofile
blob: bfafe46f41b4e8763c7fc73620a406d63816e3f5 (plain)
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
#!/bin/bash
#
# .xprofile: set basic X11 environment
#

# Background image
BACKGROUND=""

# Session applications
PROGRAMS=""

# Make sure to load the profile
source $HOME/.profile

# Start xscreensaver
xscreensaver -no-splash &

# Custom
if [ -e "$HOME/.custom/xprofile" ]; then
  source $HOME/.custom/xprofile
fi

# Set background
if [ ! -z "$BACKGROUND" ]; then
  Esetroot -scale $HOME/.config/themes/backgrounds/$BACKGROUND
else
  xsetroot -solid black
fi

# Additional applications depending on the machine type
if laptop-detect; then
  PROGRAMS="$PROGRAMS wicd-client"
else
  PROGRAMS="$PROGRAMS"
fi

# Start session applications
for program in $PROGRAMS; do
  $program &
done