From 8b53277b492831109a1e1a8d7d4c5753d9d48fa2 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:02:03 +0900 Subject: modified bin/bookmarks, modified bin/dmenuconnections, modified bin/getkeys, modified bin/qndl, modified statusbar/sb-internet --- ar/.local/bin/getkeys | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ar/.local/bin/getkeys') diff --git a/ar/.local/bin/getkeys b/ar/.local/bin/getkeys index 79a7872..492b056 100755 --- a/ar/.local/bin/getkeys +++ b/ar/.local/bin/getkeys @@ -1,6 +1,7 @@ #!/bin/sh # Print available keys from thesiah -cat "${XDG_DATA_HOME:-${HOME}/.local/share}"/thesiah/keys/"$1" 2>/dev/null && exit -echo "Run command with one of the following arguments for info about that program:" -ls "${XDG_DATA_HOME:-${HOME}/.local/share}"/thesiah/keys +[ -n "$1" ] && cat "${XDG_DATA_HOME:-${HOME}/.local/share}"/thesiah/keys/"$1" 2>/dev/null && exit +keys_dir="${XDG_DATA_HOME:-${HOME}/.local/share}/thesiah/keys" +selected_file=$(du -a "$keys_dir" | cut -f2- | sed "s|$keys_dir/||" | fzf) +[ -n "$selected_file" ] && cat "$keys_dir/$selected_file" -- cgit v1.2.3