From d8c195394751dfe21c2414dd2f1866bc398d2681 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Fri, 17 Nov 2023 13:21:49 -0700 Subject: [PATCH] Fix `tofi` paths and arguments --- tofi/tofi-drun.sh | 2 +- tofi/tofi-menu.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tofi/tofi-drun.sh b/tofi/tofi-drun.sh index 7eaee6f..f68c6d1 100755 --- a/tofi/tofi-drun.sh +++ b/tofi/tofi-drun.sh @@ -1,4 +1,4 @@ #!/bin/bash HEIGHT=$(swaymsg -t get_outputs | tr '\n' ' ' | sed -e 's/ */ /g' | sed -e 's/\(.*"focused": [a-z]*\),/\1\n/' | less | grep '"focused": true' | sed -e 's/.*"rect": {[^}]*"height": \([0-9]*\).*/\1/') -tofi-drun --prompt-text "$ " --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml +${HOME}/.local/bin/tofi-drun --prompt-text "Run: " --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml diff --git a/tofi/tofi-menu.sh b/tofi/tofi-menu.sh index 85443d4..6f8d893 100755 --- a/tofi/tofi-menu.sh +++ b/tofi/tofi-menu.sh @@ -26,4 +26,4 @@ cd $1 HEIGHT=$(swaymsg -t get_outputs | tr '\n' ' ' | sed -e 's/ */ /g' | sed -e 's/\(.*"focused": [a-z]*\),/\1\n/' | less | grep '"focused": true' | sed -e 's/.*"rect": {[^}]*"height": \([0-9]*\).*/\1/') -exec "./$(find ./ -executable -type f | sed -E 's/\.\///' | tofi --prompt-text 'Power: ' --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml)" 2>/dev/null +exec "./$(find ./ -executable -type f | sed -E 's/\.\///' | ${HOME}/.local/bin/tofi --prompt-text 'Power: ' --height $HEIGHT --config ${HOME}/.dotfiles/tofi/sidebar.toml)" 2>/dev/null