mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-10-30 20:11:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			824 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			824 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| # In LARBS, ~/.config/wall.png is the location of the system wallpaper.  This
 | |
| # script, if given an argument, moves it there.  This script without an
 | |
| # argument sets ~/.config/wall.png as the wallpaper, which is required on login
 | |
| # if you don't want a black screen.
 | |
| #
 | |
| # You may also give a directory name to select a random image from that
 | |
| # directory as a wallpaper. Be careful that the directory only has images.
 | |
| # by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
 | |
| 
 | |
| [ -f "$1" ] && cp "$1" ~/.config/wall.png && notify-send -i "$HOME/.config/wall.png" "Wallpaper changed."
 | |
| 
 | |
| [ -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."
 | |
| 
 | |
| xwallpaper --zoom ~/.config/wall.png
 |