.xinitrc 882 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #!/bin/sh
  2. #
  3. # ~/.xinitrc
  4. #
  5. # Executed by startx (run your window manager from here)
  6. if [ -d /etc/X11/xinit/xinitrc.d ]; then
  7. for f in /etc/X11/xinit/xinitrc.d/*; do
  8. [ -x "$f" ] && . "$f"
  9. done
  10. unset f
  11. fi
  12. DBUS=dbus-launch
  13. session=${1:-dwm}
  14. JAVAFIX="wmname LG3D"
  15. TRAYER=trayer --expand true --widthtype request --transparent true --alpha 255 --edge bottom --align right
  16. # To make this possible, Copy the following file
  17. # cp /etc/X11/xinit/xserverrc ~/.xserverrc
  18. #then use either of the following commands:
  19. # xinit $WMorDE
  20. # startx ~/.xinitrc $WMorDE
  21. case $session in
  22. i3|i3wm ) exec $DBUS i3
  23. ;;
  24. dwm|DWM )
  25. (conky | while read LINE; do xsetroot -name "$LINE"; done) &
  26. tilda &
  27. nitrogen --restore &
  28. xfce4-volumed &
  29. pnmixer &
  30. $JAVAFIX &
  31. nm-applet &
  32. compton --config $HOME/.config/compton.conf -b &
  33. exec $DBUS dwm
  34. ;;
  35. * ) exec $DBUS $1
  36. ;;
  37. esac