#!/bin/bash

THEME=pirate_ships
ROTATED=$(xrandr --listmonitors | grep '1080.*x1920')

if [[ $ROTATED ]]
  then
    feh --bg-scale $(find $HOME/pictures/wallpaper/${THEME}_rotated -type f | shuf -n1) --bg-scale $(find $HOME/pictures/wallpaper/${THEME} -type f | shuf -n1)
  else
    feh --bg-scale -z $HOME/pictures/wallpaper/${THEME}
fi
