Dotfiles for different machines on different branches.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
824 B

  1. #!/bin/sh
  2. # In LARBS, ~/.config/wall.png is the location of the system wallpaper. This
  3. # script, if given an argument, moves it there. This script without an
  4. # argument sets ~/.config/wall.png as the wallpaper, which is required on login
  5. # if you don't want a black screen.
  6. #
  7. # You may also give a directory name to select a random image from that
  8. # directory as a wallpaper. Be careful that the directory only has images.
  9. # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
  10. [ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed."
  11. [ -d "$1" ] && cp "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Random Wallpaper chosen."
  12. xwallpaper --zoom ~/.config/wall.png