diff options
| author | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-09 20:26:17 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@proton.me> | 2026-03-09 20:26:17 +0530 |
| commit | 3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb (patch) | |
| tree | a23adc82d229a2b919ea1fcfb11e343671619518 /modules/desktop/sxhkd/scripts/keybindings.sh | |
| parent | d308f652cd9aab7c68daaf82abe1ec01ffaa698c (diff) | |
| download | home-manager-config-3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb.tar.gz home-manager-config-3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb.zip | |
Some minor code refactoring
Diffstat (limited to 'modules/desktop/sxhkd/scripts/keybindings.sh')
| -rwxr-xr-x | modules/desktop/sxhkd/scripts/keybindings.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/desktop/sxhkd/scripts/keybindings.sh b/modules/desktop/sxhkd/scripts/keybindings.sh index 01bb05f..1548f1c 100755 --- a/modules/desktop/sxhkd/scripts/keybindings.sh +++ b/modules/desktop/sxhkd/scripts/keybindings.sh @@ -36,13 +36,12 @@ border_line="├$(printf '%.0s─' $(seq 1 $max_keybinding_length))┼$(printf ' # Print table header with borders echo "┌$(printf '%.0s─' $(seq 1 $max_keybinding_length))┬$(printf '%.0s─' $(seq 1 $description_width))┐" printf "│ %-*s │ %-*s │\n" "$max_keybinding_content_length" "KEYBINDING" "$description_content_width" "DESCRIPTION" - - # Initialize variables + description="" - + # Load the sxhkd file into an array mapfile -t lines < "$SXHKD_FILE" - + # Loop through lines for output for line in "${lines[@]}"; do # Check if the line is a comment |
