[Hyprland] Add new bind layout
This commit is contained in:
		
							
								
								
									
										29
									
								
								setup
									
									
									
									
									
								
							
							
						
						
									
										29
									
								
								setup
									
									
									
									
									
								
							| @@ -36,6 +36,8 @@ else | ||||
| fi | ||||
| platform=$(echo "$platform" | tr '[:upper:]' '[:lower:]') | ||||
|  | ||||
|  | ||||
| # ──────────────────────────────────────────────────────────────────── | ||||
| # Get user preference for regenerating the styling | ||||
| regen="" | ||||
| read -p "Would you like to regenerate styling? (y/N) " regen | ||||
| @@ -53,6 +55,19 @@ else | ||||
|     read -p "Apply full config? (y/N) " restart | ||||
| fi | ||||
|  | ||||
| # ──────────────────────────────────────────────────────────────────── | ||||
| # Hyprmode config | ||||
| hyprmode="" | ||||
| if [[ -f ~/.config/hyprmode ]]; then | ||||
|     echo "Hyprmode config already specified, skipping" | ||||
|     platform=$(cat ~/.config/hyprmode) | ||||
| else | ||||
|     read -p "Would you like to use Hyprmode? (Y/n) " hyprmode | ||||
| fi | ||||
| hyprmode=$(echo "$hyprmode" | tr '[:upper:]' '[:lower:]') | ||||
|  | ||||
|  | ||||
| # ──────────────────────────────────────────────────────────────────── | ||||
| echo "=> Moving configs to correct destinations" | ||||
| killall swaybg | ||||
| cp -r ./config/fish ~/.config/ | ||||
| @@ -71,6 +86,16 @@ 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" | ||||
|     mv -f ~/.config/hypr/hyprland/mode-binds.conf ~/.config/hypr/hyprland/binds.conf | ||||
| else | ||||
|     echo "Disabling hyprmode" | ||||
|     rm -rf ~/.config/hypr/hyprland/modal-binds | ||||
|     rm ~/.config/hypr/hyprland/mode-binds.conf | ||||
| fi | ||||
|  | ||||
| # Done this way intentionally to control what is copied | ||||
| cp -r ./config/kitty ~/.config/ | ||||
| cp -r ./config/fastfetch ~/.config/ | ||||
| @@ -82,6 +107,8 @@ cp -r ./config/yazi ~/.config/ | ||||
| cp -r ./config/zathura ~/.config/ | ||||
| cp ./config/lint/indentconfig.yaml ~/.indentconfig.yaml | ||||
|  | ||||
| # ──────────────────────────────────────────────────────────────────── | ||||
|  | ||||
| echo " | ||||
|     => Installing yazi plugins | ||||
| " | ||||
| @@ -111,6 +138,8 @@ if [[ "$restart" == "y" ]]; then | ||||
|     ./scripts/restart-bar | ||||
| fi | ||||
|  | ||||
| # ──────────────────────────────────────────────────────────────────── | ||||
|  | ||||
| hyprctl reload | ||||
|  | ||||
| echo " | ||||
|   | ||||
		Reference in New Issue
	
	Block a user