1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #!/bin/sh
- #
- # ~/.xinitrc
- #
- # Executed by startx (run your window manager from here)
- if [ -d /etc/X11/xinit/xinitrc.d ]; then
- for f in /etc/X11/xinit/xinitrc.d/*; do
- [ -x "$f" ] && . "$f"
- done
- unset f
- fi
- DBUS=dbus-launch
- session=${1:-dwm}
- JAVAFIX="wmname LG3D"
- TRAYER=trayer --expand true --widthtype request --transparent true --alpha 255 --edge bottom --align right
- # To make this possible, Copy the following file
- # cp /etc/X11/xinit/xserverrc ~/.xserverrc
- #then use either of the following commands:
- # xinit $WMorDE
- # startx ~/.xinitrc $WMorDE
- case $session in
- i3|i3wm ) exec $DBUS i3
- ;;
- dwm|DWM )
- (conky | while read LINE; do xsetroot -name "$LINE"; done) &
- tilda &
- nitrogen --restore &
- xfce4-volumed &
- pnmixer &
- $JAVAFIX &
- nm-applet &
- compton --config $HOME/.config/compton.conf -b &
- exec $DBUS dwm
- ;;
- * ) exec $DBUS $1
- ;;
- esac
|