mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Fix show bindings for the new files
This commit is contained in:
@ -4,7 +4,12 @@
|
|||||||
# using wofi for an interactive search menu.
|
# using wofi for an interactive search menu.
|
||||||
|
|
||||||
USER_HYPRLAND_CONF="$HOME/.config/hypr/hyprland.conf"
|
USER_HYPRLAND_CONF="$HOME/.config/hypr/hyprland.conf"
|
||||||
OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf"
|
OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf $HOME/.local/share/omarchy/default/hypr/bindings/tiling.conf $HOME/.local/share/omarchy/default/hypr/bindings/utilities.conf $HOME/.local/share/omarchy/default/hypr/bindings.conf $HOME/.local/share/omarchy/default/hypr/media.conf"
|
||||||
|
|
||||||
|
OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf \
|
||||||
|
$HOME/.local/share/omarchy/default/hypr/bindings/tiling.conf \
|
||||||
|
$HOME/.local/share/omarchy/default/hypr/bindings/utilities.conf \
|
||||||
|
$HOME/.local/share/omarchy/default/hypr/media.conf"
|
||||||
|
|
||||||
# Process the configuration file to extract and format keybindings
|
# Process the configuration file to extract and format keybindings
|
||||||
# 1. `grep` finds all lines starting with 'bind' (allowing for leading spaces).
|
# 1. `grep` finds all lines starting with 'bind' (allowing for leading spaces).
|
||||||
@ -16,7 +21,7 @@ OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf"
|
|||||||
# - It joins the command that the key executes.
|
# - It joins the command that the key executes.
|
||||||
# - It prints everything in a nicely aligned format.
|
# - It prints everything in a nicely aligned format.
|
||||||
# 4. The final `sed` cleans up any leftover commas from the end of lines.
|
# 4. The final `sed` cleans up any leftover commas from the end of lines.
|
||||||
grep -h '^[[:space:]]*bind' "$USER_HYPRLAND_CONF" "$OMARCHY_BINDINGS_CONF" |
|
grep -h '^[[:space:]]*bind' $USER_HYPRLAND_CONF $OMARCHY_BINDINGS_CONF |
|
||||||
awk -F, '
|
awk -F, '
|
||||||
{
|
{
|
||||||
# Strip trailing comments
|
# Strip trailing comments
|
||||||
|
Reference in New Issue
Block a user