Updates config script
This commit is contained in:
		
							parent
							
								
									f43ed77b12
								
							
						
					
					
						commit
						fd83169d4f
					
				
					 2 changed files with 20 additions and 19 deletions
				
			
		
							
								
								
									
										1
									
								
								configs/.xinitrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								configs/.xinitrc
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					xset r rate 150 20
 | 
				
			||||||
| 
						 | 
					@ -39,24 +39,24 @@ done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Fish Shell is a special case
 | 
					# Fish Shell is a special case
 | 
				
			||||||
cf_dir="${HOME}/.configs/fish"
 | 
					# cf_dir="${HOME}/.configs/fish"
 | 
				
			||||||
cf="config.fish"
 | 
					# cf="config.fish"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -f "${cf_dir}/${cf}" ] && [ ! -L "${cf_dir}/${cf}" ]; then
 | 
					# if [ -f "${cf_dir}/${cf}" ] && [ ! -L "${cf_dir}/${cf}" ]; then
 | 
				
			||||||
    echo -n "Backing up ${cf} ... " && \
 | 
					#     echo -n "Backing up ${cf} ... " && \
 | 
				
			||||||
    mv "${cf_dir}/${cf}" "${HOME}/${cf}.bak" && \
 | 
					#     mv "${cf_dir}/${cf}" "${HOME}/${cf}.bak" && \
 | 
				
			||||||
    echo "Done."
 | 
					#     echo "Done."
 | 
				
			||||||
fi
 | 
					# fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -L "${cf_dir}/${cf}" ]; then
 | 
					# if [ -L "${cf_dir}/${cf}" ]; then
 | 
				
			||||||
    if [ $(readlink "${cf_dir}/${cf}") = "${pc_settings_path}/configs/${cf}" ]; then
 | 
					#     if [ $(readlink "${cf_dir}/${cf}") = "${pc_settings_path}/configs/${cf}" ]; then
 | 
				
			||||||
        echo "Already properly symlinked to \"${pc_settings_path}/configs\"."
 | 
					#         echo "Already properly symlinked to \"${pc_settings_path}/configs\"."
 | 
				
			||||||
    else
 | 
					#     else
 | 
				
			||||||
        echo "Already symlinked but NOT to the proper location. Aborting..."
 | 
					#         echo "Already symlinked but NOT to the proper location. Aborting..."
 | 
				
			||||||
    fi
 | 
					#     fi
 | 
				
			||||||
else
 | 
					# else
 | 
				
			||||||
    echo -n "Symlinking to ${pc_settings_path}/configs/${cf} ... " && \
 | 
					#     echo -n "Symlinking to ${pc_settings_path}/configs/${cf} ... " && \
 | 
				
			||||||
    ln -s "${pc_settings_path}/configs/${cf}" "${cf_dir}/${cf}" && \
 | 
					#     ln -s "${pc_settings_path}/configs/${cf}" "${cf_dir}/${cf}" && \
 | 
				
			||||||
    echo "Done."
 | 
					#     echo "Done."
 | 
				
			||||||
fi
 | 
					# fi
 | 
				
			||||||
echo ""
 | 
					# echo ""
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue