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