[Hyprland] Update readmes
This commit is contained in:
@@ -9,10 +9,10 @@ For my neovim config, see [here](https://git.janishutz.com/janishutz/nvim)
|
||||
|
||||

|
||||
|
||||
I am currently working on redoing my keybinds for Hyprland, in what I call `hyprmode`:
|
||||
I am currently working on redoing my keybinds for Hyprland, in what I call `hyprvim`:
|
||||
They are going to use submaps and will be significantly different, yet still familiar.
|
||||
This will enable me to have many more keybinds with reasonable starter bindings.
|
||||
I will also update Astal to have a mode indicator if `hyprmode` is enabled.
|
||||
I will also update Astal to have a mode indicator if `hyprvim` is enabled.
|
||||
|
||||
## Features
|
||||
- Astal4 based Status Bar and Quick Actions menu
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Hyprmode
|
||||
# hyprvim
|
||||
Using Vim Motions and in general vim-style commands is really neat - so why not apply to the Window Manager as well?
|
||||
|
||||
## Mapping
|
||||
|
||||
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