.xprofile 962 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. ## This file is sourced by some DM and should not contain any desktop execution.
  3. ## Internet browsers that need X to run.
  4. export BROWSER=nyxt
  5. ## ~/.local/share/applications/mimeapps.list should symlink to ~/.config/mimeapps.list.
  6. cat<<EOF > ~/.config/mimeapps.list
  7. [Added Associations]
  8. image/jpeg=sxiv.desktop
  9. video/H264=mpv.desktop
  10. video/mpeg=mpv.desktop
  11. text/html=$BROWSER.desktop
  12. application/pdf=$BROWSER.desktop
  13. [Default Applications]
  14. image/jpeg=sxiv.desktop
  15. image/png=sxiv.desktop
  16. video/mpeg=mpv.desktop
  17. text/html=$BROWSER.desktop
  18. application/pdf=zathura.desktop
  19. x-scheme-handler/http=$BROWSER.desktop
  20. x-scheme-handler/https=$BROWSER.desktop
  21. x-scheme-handler/mailto=emacs-mail.desktop
  22. EOF
  23. ## redshift
  24. redshift -l 48.51:2.20 -t 6500:3500 &
  25. ## Start user services.
  26. ## For now, we need to start it here after X has started since it has graphical services.
  27. shepherd
  28. ## Hook. Should be sourced last.
  29. [ -f ~/.xprofile_hook ] && . ~/.xprofile_hook