16 lines
		
	
	
		
			405 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			405 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| name="$(basename $0)"
 | |
| printf "[INFO] Loading X resource files\n"
 | |
| if [ -r ~/.Xresources ]; then
 | |
| 	xrdb ~/.Xresources
 | |
| 	printf "$name: Loading .Xresources\n"
 | |
| fi
 | |
| for file in "${XDG_CONFIG_HOME:-$HOME/.config}"/xrdb/*.xresources; do
 | |
| 	if ! [ -r "$file" ]; then
 | |
| 		printf "$name: Could not read .xresources file \"$file\"\n" 1>&2
 | |
| 	else
 | |
| 		printf "$name: Merging in $file\n"
 | |
| 		xrdb -merge "$file"
 | |
| 	fi
 | |
| done
 |