From 3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Mon, 9 Mar 2026 20:26:17 +0530 Subject: Some minor code refactoring --- modules/desktop/sxhkd/scripts/keybindings.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/desktop/sxhkd/scripts') 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 -- cgit v1.2.3