summaryrefslogtreecommitdiffstats
path: root/core/modules/bwlp-desktop-tweaks/data/opt/openslx/scripts/start-useful-session-daemons
blob: bdbc253d7e47ab44dca731d119990d5db641a821 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

# Check environment

file="/sys/class/backlight/intel_backlight/max_brightness"
if ! [ -e "$file" ]; then
	for file in /sys/class/backlight/*/max_brightness; do
		break
	done
fi
have_backlight=false
[ -e "$file" ] && have_backlight=true

#
# Run daemons
#

# xfce4-power-manager

if $have_backlight; then
	xfce4-power-manager &
fi

exit 0