init keybindings.md

This commit is contained in:
Hadi 2024-06-25 11:47:15 +02:00 committed by GitHub
parent b4947a61c5
commit 0b4f2d6970
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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