Config is mostly done now.
This commit is contained in:
		
							
								
								
									
										19
									
								
								bin/sunhat-Font
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								bin/sunhat-Font
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
# Pick a preconfigured theme
 | 
			
		||||
FONT=$(gum choose "Cascadia Mono" "Victor Mono" "Fira Mono" "JetBrains Mono" "Meslo" --header "Choose your programming font:" --height 6 | tr '[:upper:]' '[:lower:]' | sed 's/ /-/g')
 | 
			
		||||
 | 
			
		||||
[ ! -n "$FONT" ] && exit 0
 | 
			
		||||
 | 
			
		||||
if [ "$FONT" == "cascadia-mono" ]; then
 | 
			
		||||
	NERD_FONT="CaskaydiaMono Nerd Font"
 | 
			
		||||
elif [ "$FONT" == "victor-mono" ]; then
 | 
			
		||||
	NERD_FONT="VictorMono Nerd Font"
 | 
			
		||||
elif [ "$FONT" == "fira-mono" ]; then
 | 
			
		||||
	NERD_FONT="FiraMono Nerd Font"
 | 
			
		||||
elif [ "$FONT" == "jetbrains-mono" ]; then
 | 
			
		||||
	NERD_FONT="JetBrainsMono NFM"
 | 
			
		||||
elif [ "$FONT" == "meslo" ]; then
 | 
			
		||||
	NERD_FONT="MesloLGLDZ Nerd Font"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
gsettings set org.gnome.desktop.interface monospace-font-name "$NERD_FONT 10"
 | 
			
		||||
sed -i "s/\"editor.fontFamily\": \".*\"/\"editor.fontFamily\": \"$NERD_FONT\"/g" ~/.config/Code/User/settings.json
 | 
			
		||||
		Reference in New Issue
	
	Block a user