mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-11-04 06:21:16 +01:00 
			
		
		
		
	changing setbg script to be more minimal
This commit is contained in:
		@@ -1,25 +1,5 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
# Sets the background. If given an argument, will set file as background.
 | 
					# Sets the background.
 | 
				
			||||||
if [ $(date | awk '{print $1}') = "Mon" ]; then
 | 
					wallDir=~/.config/wallpaper/$(date | awk '{print $1}')
 | 
				
			||||||
	wallDir=~/.config/wallpaper/mon
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
if [ $(date | awk '{print $1}') = "Tue" ]; then
 | 
					 | 
				
			||||||
	wallDir=~/.config/wallpaper/tue
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
if [ $(date | awk '{print $1}') = "Wed" ]; then
 | 
					 | 
				
			||||||
	wallDir=~/.config/wallpaper/wed
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
if [ $(date | awk '{print $1}') = "Thu" ]; then
 | 
					 | 
				
			||||||
	wallDir=~/.config/wallpaper/thu
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
if [ $(date | awk '{print $1}') = "Fri" ]; then
 | 
					 | 
				
			||||||
	wallDir=~/.config/wallpaper/fri
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
if [ $(date | awk '{print $1}') = "Sat" ]; then
 | 
					 | 
				
			||||||
	wallDir=~/.config/wallpaper/sat
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
if [ $(date | awk '{print $1}') = "Sun" ]; then
 | 
					 | 
				
			||||||
	wallDir=~/.config/wallpaper/sun
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
currWall=$wallDir/$(ls $wallDir | shuf -n 1)
 | 
					currWall=$wallDir/$(ls $wallDir | shuf -n 1)
 | 
				
			||||||
xwallpaper --zoom $currWall
 | 
					xwallpaper --zoom $currWall
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user