Convert `which` -> `command -v` for POSIX compliance
[dotfiles-public.git] / src / .xinitrc
1 #!/bin/sh
2 #
3 # .xinitrc, a startup file for X
4
5 if [ -n $(command -v conky) ]; then
6     conky &
7 fi
8
9 # Setup ACPI on my ASUS EEPC
10 if [ -e /usr/bin/asus_acpid ]; then
11     ASUS_ACPID=$(ps -u $(whoami) | grep asus_acpid)
12     if [ "$ASUS_ACPID" == "" ]; then
13         /usr/bin/asus_acpid --logfile /tmp/asus_acpid.log &
14     fi
15 fi
16
17 # Set up keybindings
18 if [ -n $(command -v xmodmap) ]; then
19         xmodmap ~/.Xmodmap
20 fi
21
22 exec startfluxbox