Test if per-host scripts dir exists before trying to access it
[khome.git] / home / .xlaunch
CommitLineData
d6c84e8b
SK
1#! /bin/bash
2
3set -e
4
5
6launch_common() {
7 xbindkeys
8 xscreensaver &
9 mpd --kill || true
10 mpd
11 for script in ~/.xlaunch.d/*; do
12 "$script"
13 done
14}
15
16launch_specialized() {
17 # XXX dunst lazily started by dbus
658bbf0d
SK
18 local -r scripts_dir=~/.xlaunch.d."$(hostname)"
19
20 if test -f "$scripts_dir"
21 then
22 for script in "$scripts_dir"/*; do
23 "$script"
24 done
25 fi
d6c84e8b
SK
26}
27
28launch_common
29launch_specialized
30
31exec dwm
This page took 0.027289 seconds and 4 git commands to generate.