aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/sxhkd/scripts
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-03-09 20:26:17 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-03-09 20:26:17 +0530
commit3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb (patch)
treea23adc82d229a2b919ea1fcfb11e343671619518 /modules/desktop/sxhkd/scripts
parentd308f652cd9aab7c68daaf82abe1ec01ffaa698c (diff)
downloadhome-manager-config-3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb.tar.gz
home-manager-config-3389e89ec7b6f42ac4a1a6ddeb47fc5a1628c3bb.zip
Some minor code refactoring
Diffstat (limited to 'modules/desktop/sxhkd/scripts')
-rwxr-xr-xmodules/desktop/sxhkd/scripts/keybindings.sh7
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