From 0b4f2d697026f09935de4262d732835a1e019f7e Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:47:15 +0200 Subject: [PATCH] init keybindings.md --- docs/scripts/get_keybindings.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/scripts/get_keybindings.sh b/docs/scripts/get_keybindings.sh index f1f641a..d7db4b9 100644 --- a/docs/scripts/get_keybindings.sh +++ b/docs/scripts/get_keybindings.sh @@ -1 +1,21 @@ #!/usr/bin/env bash + +[[ -f "./home/system/hyprland/default.nix" ]] || (echo "File ./home/system/hyprland/default.nix not found" && exit 1) + +config=$( cat "./home/system/hyprland/default.nix") + +# get text between +# bind = [ +# and next ] + +# Example: +# "$mod, E, exec, ${pkgs.xfce.thunar}/bin/thunar" # Description +# Steps: +# We should remove the "" +# $mod replace by Super key +# $shiftMod replace by "Super Shift" +# Concat with key +# Remove , exec, +# Remove variables and /bin/ if present + +# Create a markdown table with everything \ No newline at end of file