[Hyprland] Update readmes
This commit is contained in:
		
							
								
								
									
										28
									
								
								setup
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								setup
									
									
									
									
									
								
							| @@ -55,19 +55,19 @@ else | ||||
| fi | ||||
|  | ||||
| # ──────────────────────────────────────────────────────────────────── | ||||
| # Hyprmode config | ||||
| hyprmode="" | ||||
| if [[ -f ~/.config/hyprmode ]]; then | ||||
|     echo "Hyprmode config already specified, skipping" | ||||
|     hyprmode=$(cat ~/.config/hyprmode) | ||||
| # hyprvim config | ||||
| hyprvim="" | ||||
| if [[ -f ~/.config/hyprvim ]]; then | ||||
|     echo "hyprvim config already specified, skipping" | ||||
|     hyprvim=$(cat ~/.config/hyprvim) | ||||
| else | ||||
|     read -p "Would you like to use Hyprmode? (Y/n) " hyprmode | ||||
|     read -p "Would you like to use hyprvim? (Y/n) " hyprvim | ||||
| fi | ||||
| hyprmode=$(echo "$hyprmode" | tr '[:upper:]' '[:lower:]') | ||||
| if [[ "$hyprmode" == "" ]]; then | ||||
|     hyprmode="y" | ||||
| hyprvim=$(echo "$hyprvim" | tr '[:upper:]' '[:lower:]') | ||||
| if [[ "$hyprvim" == "" ]]; then | ||||
|     hyprvim="y" | ||||
| fi | ||||
| echo "$hyprmode" >~/.config/hyprmode | ||||
| echo "$hyprvim" >~/.config/hyprvim | ||||
|  | ||||
| # ──────────────────────────────────────────────────────────────────── | ||||
| echo "=> Moving configs to correct destinations" | ||||
| @@ -88,12 +88,12 @@ else | ||||
|     cp -f ~/.config/hypr/hyprland_laptop.conf ~/.config/hypr/hyprland.conf | ||||
| fi | ||||
|  | ||||
| # Enable or disable "Hyprmode" (using hyprland with vim-inspired modes) | ||||
| if [[ "$hyprmode" == "y" ]]; then | ||||
|     echo "Enabling hyprmode" | ||||
| # Enable or disable "hyprvim" (using hyprland with vim-inspired modes) | ||||
| if [[ "$hyprvim" == "y" ]]; then | ||||
|     echo "Enabling hyprvim" | ||||
|     mv -f ~/.config/hypr/hyprland/mode-binds.conf ~/.config/hypr/hyprland/binds.conf | ||||
| else | ||||
|     echo "Disabling hyprmode" | ||||
|     echo "Disabling hyprvim" | ||||
|     rm -rf ~/.config/hypr/hyprland/modal-binds | ||||
|     rm ~/.config/hypr/hyprland/mode-binds.conf | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user