Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- DIR=${HOME}/.dwm
- if [ -f "${DIR}"/dwmrc ]; then
- /bin/sh "${DIR}"/dwmrc &
- else
- while true; do
- xsetroot -name "`date`"
- sleep 1
- done &
- fi
- # set up background.
- WALLPAPERS="/usr/share/backgrounds"
- while true; do
- ALIST=( `ls -w1 $WALLPAPERS | grep jpg`)
- RANGE=${#ALIST[*]}
- SHOW=$(( $RANDOM % $RANGE ))
- feh --bg-scale $WALLPAPERS/${ALIST[$SHOW]}
- sleep 300
- done &
- #ibus-daemon -d
- exec /usr/bin/dwm
Add Comment
Please, Sign In to add comment