From 9c3cadd7dcb051574b767a9e7d385e702a40a0b1 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 28 Sep 2023 09:45:10 -0400 Subject: [PATCH] Do not bind f to file browser in Ratpoison Mode if no file browser was found. --- i38.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/i38.sh b/i38.sh index 433c08f..336c09c 100755 --- a/i38.sh +++ b/i38.sh @@ -529,8 +529,10 @@ bindsym Shift+slash exec ${i3Path}/scripts/i38-help.sh, mode "default" bindsym c exec $sensibleTerminal, mode "default" # Text editor bound to e bindsym e exec $textEditor, mode "default" -# File browser bound to f -bindsym f exec $fileBrowser, mode "default" +$(if [[ ${#fileBrowser} -gt 3 ]]; then + echo "# File browser bound to f" + echo "bindsym f exec $fileBrowser, mode \"default\"" +fi) # Email client bound to \$mod+e bindsym \$mod+e exec $emailClient, mode "default" # Web browser bound to w