Guest User

Untitled

a guest
Jun 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. DIR=${HOME}/.dwm
  3. if [ -f "${DIR}"/dwmrc ]; then
  4. /bin/sh "${DIR}"/dwmrc &
  5. else
  6. while true; do
  7. xsetroot -name "`date`"
  8. sleep 1
  9. done &
  10. fi
  11. # set up background.
  12. WALLPAPERS="/usr/share/backgrounds"
  13. while true; do
  14. ALIST=( `ls -w1 $WALLPAPERS | grep jpg`)
  15. RANGE=${#ALIST[*]}
  16. SHOW=$(( $RANDOM % $RANGE ))
  17. feh --bg-scale $WALLPAPERS/${ALIST[$SHOW]}
  18. sleep 300
  19. done &
  20. #ibus-daemon -d
  21. exec /usr/bin/dwm
Add Comment
Please, Sign In to add comment