add brightnessctl
[slackbuilds.git] / dwm / xinitrc.dwm
blobf4cbd3bd2483dc21531000f3fb6cd375d7456362
1 #!/bin/sh
3 ########################################################################
4 ## Merge in defaults and keymaps ##
5 ########################################################################
7 userresources=$HOME/.Xresources
8 usermodmap=$HOME/.Xmodmap
9 sysresources=/etc/X11/xinit/.Xresources
10 sysmodmap=/etc/X11/xinit/.Xmodmap
12 if [ -f $sysresources ]; then
13 /usr/bin/xrdb -merge $sysresources
16 if [ -f $sysmodmap ]; then
17 /usr/bin/xmodmap $sysmodmap
20 if [ -f $userresources ]; then
21 /usr/bin/xrdb -merge $userresources
24 if [ -f $usermodmap ]; then
25 /usr/bin/xmodmap $usermodmap
28 # Start the window manager:
29 if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
30 exec ck-launch-session dbus-launch --exit-with-session /usr/bin/dwm
31 else
32 exec dbus-launch --exit-with-session /usr/bin/dwm