Wallpaper setting script actually works now
This commit is contained in:
		
							parent
							
								
									80d28f7004
								
							
						
					
					
						commit
						0dd701da37
					
				| @ -31,7 +31,7 @@ EOF | |||||||
| 		case "$key" in | 		case "$key" in | ||||||
| 		"mode")  mode="$value";; | 		"mode")  mode="$value";; | ||||||
| 		"file")  file="$value";; | 		"file")  file="$value";; | ||||||
| 		"color") color="$color";; | 		"color") color="$value";; | ||||||
| 		*)      echo "$name: bad key $key in $configFilePath" >&2;; | 		*)      echo "$name: bad key $key in $configFilePath" >&2;; | ||||||
| 		esac | 		esac | ||||||
| 	done < "$configFilePath" | 	done < "$configFilePath" | ||||||
| @ -44,8 +44,8 @@ EOF | |||||||
| 		;; | 		;; | ||||||
| 	esac | 	esac | ||||||
| 	 | 	 | ||||||
| 	[ -n color ] && shouldHaveInstalled xsetroot   && \ | 	[ -n "$color" ] && shouldHaveInstalled xsetroot   && \ | ||||||
| 		xsetroot -solid "$color" | 		xsetroot -solid "$color" | ||||||
| 	[ -n mode  ] && shouldHaveInstalled xwallpaper && \ | 	[ -n "$mode"  ] && shouldHaveInstalled xwallpaper && \ | ||||||
| 		xwallpaper "--${mode}" "$file" | 		xwallpaper "--${mode}" "$file" | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user